Fixed: can't show error line due to symbol conversion errors.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 14 Oct 2017 16:48:34 +0300
changeset 942 c90e846909b0
parent 941 547c642c8160
child 943 e94c646dcf34
Fixed: can't show error line due to symbol conversion errors.
Makefile
--- a/Makefile	Sat Oct 14 16:33:44 2017 +0300
+++ b/Makefile	Sat Oct 14 16:48:34 2017 +0300
@@ -588,22 +588,22 @@
 # -B  suppress __pycache__ dir
 
 dist/dictd/gadict.c5: gadict.gadict $(FREQLIST_DEP) py/gadict.py py/gadict_c5.py $(MAKEFILE_LIST) | dist/dictd/
-	python3 -B py/gadict_c5.py $(FREQLIST_OPT)  $< $@
+	LC_ALL=en_US.utf8 python3 -B py/gadict_c5.py $(FREQLIST_OPT)  $< $@
 	echo "gadict En-Ru+Uk"> dist/dictd/gadict.c5.name
 
 dist/dictd/gadict_en-ru.c5: gadict.gadict py/gadict.py py/gadict_c5.py $(MAKEFILE_LIST) | dist/dictd/
-	python3 -B py/gadict_c5.py  $< $@ -lang:ru
+	LC_ALL=en_US.utf8 python3 -B py/gadict_c5.py  $< $@ -lang:ru
 	echo "gadict En-Ru"> dist/dictd/gadict_en-ru.c5.name
 
 dist/dictd/gadict_en-uk.c5: gadict.gadict py/gadict.py py/gadict_c5.py $(MAKEFILE_LIST) | dist/dictd/
-	python3 -B py/gadict_c5.py  $< $@ -lang:uk
+	LC_ALL=en_US.utf8 python3 -B py/gadict_c5.py  $< $@ -lang:uk
 	echo "gadict En-Uk"> dist/dictd/gadict_en-uk.c5.name
 
 dist/dictd/gadict_voa.c5: gadict_voa.gadict py/gadict.py py/gadict_c5.py $(MAKEFILE_LIST) | dist/dictd/
-	python3 -B py/gadict_c5.py  $< $@ -lang:en
+	LC_ALL=en_US.utf8 python3 -B py/gadict_c5.py  $< $@ -lang:en
 
 dist/dictd/%.c5: %.gadict py/gadict.py py/gadict_c5.py $(MAKEFILE_LIST) | dist/dictd/
-	python3 -B py/gadict_c5.py  $< $@
+	LC_ALL=en_US.utf8 python3 -B py/gadict_c5.py  $< $@
 
 dist/dictd/:
 	mkdir -p $@