From: jouni%heikniemi.net <> Date: Sun, 4 Jan 2004 15:39:00 +0000 (+0000) Subject: Bug 185330: Checksetup console input doesn't work on Win32. r,a=justdave X-Git-Tag: bugzilla-2.17.7~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b322f7015a5e4ad0c57a1f0b49a061bdc71faf;p=thirdparty%2Fbugzilla.git Bug 185330: Checksetup console input doesn't work on Win32. r,a=justdave --- diff --git a/checksetup.pl b/checksetup.pl index 9b368b9b84..821de1262c 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -336,6 +336,14 @@ if (%missing) { } } + +# If we're running on Windows, reset the input line terminator so that +# console input works properly - loading CGI tends to mess it up + +if ($^O =~ /MSWin/i) { + $/ = "\015\012"; +} + ########################################################################### # Global definitions ###########################################################################