From 864224b904ae9ca0ff97977d089be176c45b8996 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 8 Jun 2015 15:42:07 +0100 Subject: [PATCH] backport: libstdc++.exp (libstdc++_init): Unset LANGUAGE environment variable. Backported from mainline 2015-06-01 Jonathan Wakely * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE environment variable. From-SVN: r224234 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 278f4b45d286..29169172b57f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2015-06-08 Jonathan Wakely + Backported from mainline + 2015-06-01 Jonathan Wakely + + * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE + environment variable. + PR libstdc++/66354 * include/bits/stl_algobase.h (__fill_a): Check length before calling memset. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index eb2e8a853522..79eec1cb993c 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -99,6 +99,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*"] } { -- 2.47.2