]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 185330: Checksetup console input doesn't work on Win32. r,a=justdave
authorjouni%heikniemi.net <>
Sun, 4 Jan 2004 15:39:00 +0000 (15:39 +0000)
committerjouni%heikniemi.net <>
Sun, 4 Jan 2004 15:39:00 +0000 (15:39 +0000)
checksetup.pl

index 9b368b9b84e767c69aff54330702c86fb36079d6..821de1262ce1b08b9384e86d87609e241ff01339 100755 (executable)
@@ -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
 ###########################################################################