Skip to content

Commit 4a6fd46

Browse files
committed
Force LANG=en on Windows, since system may fail to default to English.
1 parent 98640c3 commit 4a6fd46

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/test/regress/pg_regress.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.49 2004/10/31 19:14:16 tgl Exp $
2+
# $PostgreSQL: pgsql/src/test/regress/pg_regress.sh,v 1.50 2004/11/17 18:06:04 tgl Exp $
33

44
me=`basename $0`
55
: ${TMPDIR=/tmp}
@@ -50,6 +50,14 @@ message(){
5050

5151
unset LC_COLLATE LC_CTYPE LC_MONETARY LC_MESSAGES LC_NUMERIC LC_TIME LC_ALL LANG LANGUAGE
5252

53+
# On Windows the default locale may not be English, so force it
54+
case $host_platform in
55+
*-*-cygwin*|*-*-mingw32*)
56+
LANG=en
57+
export LANG
58+
;;
59+
esac
60+
5361

5462
# ----------
5563
# Check for echo -n vs echo \c

0 commit comments

Comments
 (0)