shithub: choc

Download patch

ref: 685062a58f7be4140648dd9c7b4459e34f88cbfa
parent: d50a8a60a0a7aead506cbf1b7e599ff441c7b948
author: Mike Swanson <[email protected]>
date: Wed Mar 7 06:00:37 EST 2018

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.

--- a/pkg/win32/GNUmakefile
+++ b/pkg/win32/GNUmakefile
@@ -38,12 +38,12 @@
 
 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