aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmudflap/ChangeLog5
-rw-r--r--libmudflap/testsuite/lib/mfdg.exp10
2 files changed, 15 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index 333029f..17ce18d 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR libmudflap/58230
+ * testsuite/lib/mfdg.exp: Use C locale.
+
2013-09-20 Jakub Jelinek <jakub@redhat.com>
PR testsuite/57605
diff --git a/libmudflap/testsuite/lib/mfdg.exp b/libmudflap/testsuite/lib/mfdg.exp
index 0b9875c..1984b31 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
#