summaryrefslogtreecommitdiff
path: root/mkspecs
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-06-06 10:41:11 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2017-06-09 09:17:59 +0000
commitc4cb4af2bcc3b2a161c698a8458f94d2f2c5a2e8 (patch)
tree35187c7a03af1d170acf66b107877dbdb1761963 /mkspecs
parentfca48bce00940f2aff54b6f8543649dbaf4f2dee (diff)
downloadqtivi-c4cb4af2bcc3b2a161c698a8458f94d2f2c5a2e8.tar.gz
ivigenerator: Enforce the correct locale when calling the generator
Task-number: QTAUTO-460 Change-Id: I63187fa0937ad29215bf830e35ceb87aaaef44d1 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/ivigenerator.prf4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf
index fcbd729..87d7540 100644
--- a/mkspecs/features/ivigenerator.prf
+++ b/mkspecs/features/ivigenerator.prf
@@ -33,6 +33,10 @@ win32: VIRTUALENV_ACTIVATION = $$VIRTUALENV_PATH/Scripts/activate &&
else: VIRTUALENV_ACTIVATION = . $$VIRTUALENV_PATH/bin/activate &&
IVI_GENERATOR = $$VIRTUALENV_ACTIVATION python $$IVI_GENERATOR_PATH/generate.py
+# The 'click' library used by the generator needs to have a utf8 locale setup.
+win32: ENV = chcp 65001 &&
+else: ENV = LC_ALL="utf-8"
+
# TODO make this work with multiple input files, or only support one QFACE_SOURCE
qface_sources.output = $$QFACE_OUTPUT_DIR/$${QFACE_MODULE_NAME}.pri
qface_sources.commands = $$IVI_GENERATOR -f $$QFACE_FORMAT ${QMAKE_FILE_NAME} $$QFACE_OUTPUT_DIR