This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] ccwrap: fix build with non-english locale set
- From: Patrick Bendorf <mail at patrick-bendorf dot de>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 29 Feb 2016 08:12:50 +0100
- Subject: [PATCH] ccwrap: fix build with non-english locale set
- Authentication-results: sourceware.org; auth=none
/winsup/
* ccwrap: fix build with non-english locale set
---
winsup/ccwrap | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/ccwrap b/winsup/ccwrap
index 7580e7a..ef83085 100755
--- a/winsup/ccwrap
+++ b/winsup/ccwrap
@@ -12,6 +12,7 @@ if ($ARGV[0] ne '++') {
$cxx = 1;
}
die "$0: $ccorcxx environment variable does not exist\n" unless exists
$ENV{$ccorcxx};
+$ENV{'LANG'} = 'C.UTF-8';
my @compiler = split ' ', $ENV{$ccorcxx};
if ("@ARGV" !~ / -nostdinc/o) {
my $fd;
--
2.7.0