aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-11-17 18:06:04 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-11-17 18:06:04 +0000
commit4a6fd46950f82f4fe78d19c536a36c4fb882e540 (patch)
tree8cfa16750e81beb080dcfd3d01b2199ee74959b7
parent98640c313016d9234ffd29044af2484623ad0ade (diff)
downloadpostgresql-4a6fd46950f82f4fe78d19c536a36c4fb882e540.tar.gz
postgresql-4a6fd46950f82f4fe78d19c536a36c4fb882e540.zip
Force LANG=en on Windows, since system may fail to default to English.
-rw-r--r--src/test/regress/pg_regress.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
index bfcc6bab4bc..cf45f73ae4f 100644
--- a/src/test/regress/pg_regress.sh
+++ b/src/test/regress/pg_regress.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.49 2004/10/31 19:14:16 tgl Exp $
+# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.50 2004/11/17 18:06:04 tgl Exp $
me=`basename $0`
: ${TMPDIR=/tmp}
@@ -50,6 +50,14 @@ message(){
unset LC_COLLATE LC_CTYPE LC_MONETARY LC_MESSAGES LC_NUMERIC LC_TIME LC_ALL LANG LANGUAGE
+# On Windows the default locale may not be English, so force it
+case $host_platform in
+ *-*-cygwin*|*-*-mingw32*)
+ LANG=en
+ export LANG
+ ;;
+esac
+
# ----------
# Check for echo -n vs echo \c