Skip to content

Commit

Permalink
Set env LC_ALL=C
Browse files Browse the repository at this point in the history
See #2
  • Loading branch information
dnaeon committed Apr 30, 2024
1 parent 08714cb commit 4ed0542
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/makefile-graph/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ func dumpMakeDb(file string) (io.Reader, error) {
"--question",
}

output, err := exec.Command("make", args...).Output()
env := []string{
"LC_ALL=C",
}

cmd := exec.Command("make", args...)
cmd.Env = env
output, err := cmd.Output()
if err != nil {
if exiterr, ok := err.(*exec.ExitError); ok {
// We ignore exit code 1 and 2 here. Exit code 1 will be
Expand Down

0 comments on commit 4ed0542

Please sign in to comment.