aboutsummaryrefslogtreecommitdiff
path: root/winsup/ccwrap
diff options
context:
space:
mode:
authorPatrick Bendorf <mail@patrick-bendorf.de>2016-02-29 14:34:09 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-02-29 14:44:23 +0100
commit2cd76694e1d7021759cca8f940092186530dfdae (patch)
treea311d7cf328493dd9c2c35cdaca1f7b1dad4bcf3 /winsup/ccwrap
parent5b88b625620b88fc6a298a30c0142df307e53e92 (diff)
downloadnewlib-2cd76694e1d7021759cca8f940092186530dfdae.zip
newlib-2cd76694e1d7021759cca8f940092186530dfdae.tar.gz
newlib-2cd76694e1d7021759cca8f940092186530dfdae.tar.bz2
ccwrap: fix build with non-english locale set (v2)
after some discussion on irc and the list i'm resubmitting a simpler version of the patch. setting the locale on cygwin to 'C.UTF-8' is not needed, so i'm always setting it to 'C' which is sufficient for the build process and the most simple fix.
Diffstat (limited to 'winsup/ccwrap')
-rwxr-xr-xwinsup/ccwrap6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/ccwrap b/winsup/ccwrap
index 2f1fd3a..0c6a170 100755
--- a/winsup/ccwrap
+++ b/winsup/ccwrap
@@ -12,11 +12,7 @@ if ($ARGV[0] ne '++') {
$cxx = 1;
}
die "$0: $ccorcxx environment variable does not exist\n" unless exists $ENV{$ccorcxx};
-if (`uname -o` =~ /cygwin/i) {
- $ENV{'LANG'} = 'C.UTF-8';
-} else {
- $ENV{'LANG'} = 'C';
-}
+$ENV{'LANG'} = 'C';
my @compiler = split ' ', $ENV{$ccorcxx};
if ("@ARGV" !~ / -nostdinc/o) {
my $fd;