3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/go/cgo-set-local-to-match-gcc-error-messages.patch
Nicolas Pierron 66ef37d260 * Fix "cgo" binary be defining LC_ALL=C inside the binary.
svn path=/nixpkgs/trunk/; revision=18350
2009-11-14 23:39:53 +00:00

14 lines
403 B
Diff

diff -r 21cae7efdcc6 src/cmd/cgo/main.go
--- a/src/cmd/cgo/main.go Sat Nov 14 12:23:24 2009 -0800
+++ b/src/cmd/cgo/main.go Sun Nov 15 00:00:09 2009 +0100
@@ -52,6 +52,9 @@
fatal("unknown architecture %s", arch)
}
+ // Define the language of gcc error messages.
+ os.Setenv("LC_ALL", "C");
+
p := openProg(input);
for _, cref := range p.Crefs {
// Convert C.ulong to C.unsigned long, etc.