This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] Re: dg-error vs. i18n?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: janis187 at us dot ibm dot com
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Nov 2009 23:51:55 +0000
- Subject: Re: [PING] Re: dg-error vs. i18n?
- References: <4AE235E4.2060005@gmail.com> <84fc9c000910231559y194a9ccfyfb9414f8ed04a361@mail.gmail.com> <Pine.LNX.4.64.0910232305540.30905@digraph.polyomino.org.uk> <4B00C320.2040503@gmail.com> <4B142D5A.1090407@gmail.com> <1259620673.25867.0.camel@janis-laptop>
Janis Johnson wrote:
>
> OK, with fixes to the ChangeLog entries as pointed out by Kaveh.
Thanks, committed, but I just realised I left a hunk out from that patch
submission, because I had some other unrelated changes in the file at the
time. I've now removed those, leaving just this hunk that was missing from
the last patch.
libstdc++-v3/ChangeLog:
* testsuite/lib/libstdc++.exp (libstdc++_init): Add host-dependent
settings for LC_ALL and LANG.
Ok as well?
cheers,
DaveK
Index: libstdc++-v3/testsuite/lib/libstdc++.exp
===================================================================
--- libstdc++-v3/testsuite/lib/libstdc++.exp (revision 154853)
+++ libstdc++-v3/testsuite/lib/libstdc++.exp (working copy)
@@ -97,6 +97,13 @@ proc libstdc++_init { testfile } {
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
+ }
+
set blddir [lookfor_file [get_multilibs] libstdc++-v3]
set flags_file "${blddir}/scripts/testsuite_flags"
v3track flags_file 2