summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjouni%heikniemi.net <>2004-01-04 16:39:00 +0100
committerjouni%heikniemi.net <>2004-01-04 16:39:00 +0100
commit50b322f7015a5e4ad0c57a1f0b49a061bdc71faf (patch)
tree1cebaf93481be47567ca7c2e29fcc0030e907265
parent9e3ebb48f4ea3d78e25e1e7b021bbfbcefd58409 (diff)
downloadbugzilla-50b322f7015a5e4ad0c57a1f0b49a061bdc71faf.tar.gz
bugzilla-50b322f7015a5e4ad0c57a1f0b49a061bdc71faf.tar.xz
Bug 185330: Checksetup console input doesn't work on Win32. r,a=justdave
-rwxr-xr-xchecksetup.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 9b368b9b8..821de1262 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
###########################################################################