libstdc++.exp (libstdc++_init): Unset LANGUAGE environment variable.
authorJonathan Wakely <jwakely@redhat.com>
Mon, 1 Jun 2015 11:57:33 +0000 (12:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 1 Jun 2015 11:57:33 +0000 (12:57 +0100)
* testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
environment variable.

From-SVN: r223937

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 599a3fb..0693ce9 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-01  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
+       environment variable.
+
 2015-05-31  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/66354
index 7d8f282..d60062d 100644 (file)
@@ -107,6 +107,10 @@ proc libstdc++_init { testfile } {
     setenv LC_ALL C
     setenv LANG C
 
+    # LANGUAGE changes the behavior of GNU gettext(3) and causes
+    # std::messages tests to fail.
+    array unset env LANGUAGE
+
     # 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*"] } {