foxygit / doom Log in
commit 685062a58f7be4140648dd9c7b4459e34f88cbfa
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Wed Mar 7 11:00:37 2018 -0800
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Wed Mar 7 11:00:37 2018 -0800

    pkg/win32: Set LC_ALL=C before running ./cp-with-libs

    Without doing this, objdump might output text in a non-Unicode locale
    and confuse Python.  This is particularly the case when running on MS
    Windows, where Unicode locales aren't default for non-English regions.
---
 pkg/win32/GNUmakefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile
index 97b8a081..bf752501 100644
--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -38,12 +38,12 @@ hook-strife: staging-strife

 staging-%:
 	mkdir $@
-	./cp-with-libs --ldflags="$(LDFLAGS)" \
+	LC_ALL=C ./cp-with-libs --ldflags="$(LDFLAGS)" \
 	               $(TOPLEVEL)/src/$(PROGRAM_PREFIX)$*.exe $@
-	./cp-with-libs --ldflags="$(LDFLAGS)" \
+	LC_ALL=C ./cp-with-libs --ldflags="$(LDFLAGS)" \
 	               $(TOPLEVEL)/src/$(PROGRAM_PREFIX)setup.exe \
 	               $@/$(PROGRAM_PREFIX)$*-setup.exe
-	./cp-with-libs --ldflags="$(LDFLAGS)" \
+	LC_ALL=C ./cp-with-libs --ldflags="$(LDFLAGS)" \
 	               $(TOPLEVEL)/midiproc/$(PROGRAM_PREFIX)midiproc.exe \
 	               $@/$(PROGRAM_PREFIX)midiproc.exe