Commit 0238fd83 authored by Russ Cox's avatar Russ Cox

cgo: arrange for English error messages

Fixes #21.

R=r
https://golang.org/cl/155048
parent 09119133
......@@ -52,6 +52,11 @@ func main() {
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);
for _, cref := range p.Crefs {
// Convert C.ulong to C.unsigned long, etc.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment