Index: gcc/gcc/testsuite/lib/gfortran.exp |
diff --git a/gcc/gcc/testsuite/lib/gfortran.exp b/gcc/gcc/testsuite/lib/gfortran.exp |
index a4d6e2b5d38aa52daa801ac22da07128e79a69ee..56aef298776d50aed631b2195cebb7d67d9a0ba4 100644 |
--- a/gcc/gcc/testsuite/lib/gfortran.exp |
+++ b/gcc/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 |