From 4ed05420ce2c3921a52849bcaecef52c176609c9 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Tue, 30 Apr 2024 18:47:58 +0300 Subject: [PATCH] Set env LC_ALL=C See #2 --- cmd/makefile-graph/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/makefile-graph/main.go b/cmd/makefile-graph/main.go index 822f8d1..090687b 100644 --- a/cmd/makefile-graph/main.go +++ b/cmd/makefile-graph/main.go @@ -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