mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cgo: arrange for English error messages
Fixes #21. R=r https://golang.org/cl/155048
This commit is contained in:
parent
091191336a
commit
0238fd836f
1 changed files with 5 additions and 0 deletions
|
|
@ -52,6 +52,11 @@ func main() {
|
||||||
fatal("unknown architecture %s", arch)
|
fatal("unknown architecture %s", arch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear locale variables so gcc emits English errors [sic].
|
||||||
|
os.Setenv("LANG", "en_US.UTF-8");
|
||||||
|
os.Setenv("LC_ALL", "C");
|
||||||
|
os.Setenv("LC_CTYPE", "C");
|
||||||
|
|
||||||
p := openProg(input);
|
p := openProg(input);
|
||||||
for _, cref := range p.Crefs {
|
for _, cref := range p.Crefs {
|
||||||
// Convert C.ulong to C.unsigned long, etc.
|
// Convert C.ulong to C.unsigned long, etc.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue