From 17f35e23325426fb3f95070cd3218c0b4f87c5a0 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Mon, 30 Nov 2009 23:30:57 +0000 Subject: libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG. libgomp/ChangeLog 2009-11-30 Dave Korn * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG. gcc/testsuite/ChangeLog 2009-11-30 Dave Korn * lib/g++.exp (g++_init): Add host-dependent settings for LC_ALL and LANG. * lib/gcc-dg.exp: Likewise. * lib/options.exp: Likewise. * lib/objc.exp (objc_init): Likewise. * lib/gfortran.exp (gfortran_init): Likewise. libjava/ChangeLog 2009-11-30 Dave Korn * testsuite/lib/libjava.exp (libjava_init): Add host-dependent settings for LC_ALL and LANG. From-SVN: r154854 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/lib/g++.exp | 7 +++++++ gcc/testsuite/lib/gcc-dg.exp | 7 +++++++ gcc/testsuite/lib/gfortran.exp | 7 +++++++ gcc/testsuite/lib/objc.exp | 7 +++++++ gcc/testsuite/lib/options.exp | 7 +++++++ 6 files changed, 44 insertions(+) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a7d248f..e97ca5a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2009-11-30 Dave Korn + + * lib/g++.exp (g++_init): Add host-dependent settings for + LC_ALL and LANG. + * lib/gcc-dg.exp: Likewise. + * lib/options.exp: Likewise. + * lib/objc.exp (objc_init): Likewise. + * lib/gfortran.exp (gfortran_init): Likewise. + 2009-11-30 Paolo Carlini PR c++/40371 diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp index a5f2680..df6030b 100644 --- a/gcc/testsuite/lib/g++.exp +++ b/gcc/testsuite/lib/g++.exp @@ -193,6 +193,13 @@ proc g++_init { args } { 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 + } + if ![info exists GXX_UNDER_TEST] then { if [info exists TOOL_EXECUTABLE] { set GXX_UNDER_TEST $TOOL_EXECUTABLE diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index 4acfdfe..512144a 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -34,6 +34,13 @@ load_lib torture-options.exp 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 +} + if [info exists TORTURE_OPTIONS] { set DG_TORTURE_OPTIONS $TORTURE_OPTIONS } else { diff --git a/gcc/testsuite/lib/gfortran.exp b/gcc/testsuite/lib/gfortran.exp index a4d6e2b..56aef29 100644 --- a/gcc/testsuite/lib/gfortran.exp +++ b/gcc/testsuite/lib/gfortran.exp @@ -136,6 +136,13 @@ proc gfortran_init { args } { 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 + } + if ![info exists GFORTRAN_UNDER_TEST] then { if [info exists TOOL_EXECUTABLE] { set GFORTRAN_UNDER_TEST $TOOL_EXECUTABLE diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index 934f31d..9d7bac0 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -102,6 +102,13 @@ proc objc_init { args } { 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 + } + if { $objc_initialized == 1 } { return; } if ![info exists OBJC_UNDER_TEST] then { diff --git a/gcc/testsuite/lib/options.exp b/gcc/testsuite/lib/options.exp index 1835902..ab48193 100644 --- a/gcc/testsuite/lib/options.exp +++ b/gcc/testsuite/lib/options.exp @@ -18,6 +18,13 @@ 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 +} + # Run the LANGUAGE compiler with GCC_OPTIONS and inspect the compiler # output to make sure that they match the newline-separated patterns # in COMPILER_PATTERNS but not the patterns in COMPILER_NON_PATTERNS. -- cgit v1.1