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.
This commit is contained in:
Patrick Bendorf 2016-02-29 14:34:09 +01:00 committed by Corinna Vinschen
parent 5b88b62562
commit 2cd76694e1

View File

@ -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;