diff options
Diffstat (limited to 'gcc/testsuite/lib/objc.exp')
-rw-r--r-- | gcc/testsuite/lib/objc.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index 934f31dabdc..9d7bac0b03b 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 { |