summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/lib/mfdg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'libmudflap/testsuite/lib/mfdg.exp')
-rw-r--r--libmudflap/testsuite/lib/mfdg.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmudflap/testsuite/lib/mfdg.exp b/libmudflap/testsuite/lib/mfdg.exp
index 0b9875cd6ec..1984b313cc9 100644
--- a/libmudflap/testsuite/lib/mfdg.exp
+++ b/libmudflap/testsuite/lib/mfdg.exp
@@ -20,6 +20,16 @@
load_lib dg.exp
+# We set LC_ALL and LANG to C so that we get the same error messages as expected.
+setenv LC_ALL C
+setenv LANG C
+
+# Many hosts now default to a non-ASCII C locale, however, so
+# they can set a charset encoding here if they need.
+if { [ishost "*-*-cygwin*"] } {
+ setenv LC_ALL C.ASCII
+ setenv LANG C.ASCII
+}
# dg-test -- runs a new style DejaGnu test
#