diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-11-24 17:05:08 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-24 16:13:56 +0000 |
commit | b47d95449d64e69cc449577302bc49ab95a9fc6d (patch) | |
tree | 1efcbe9f3630c0e1b28b0c68480874cfeea637b8 /scripts | |
parent | a118dc48363c930d9e35f92b71d4f0e7395b6018 (diff) | |
download | qt-creator-b47d95449d64e69cc449577302bc49ab95a9fc6d.tar.gz |
deploy.py: Fix when running with Python 3.6
Which happens to be the default version on macOS 10.14.
Python 3.6 does not return a sensible default encoding if you don't
fiddle with your environment (like explicitly setting LANG). Fall back
to UTF-8.
Change-Id: I12534e4745e9c29b40a02c4946d8079d395cc650
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/common.py b/scripts/common.py index d530afdb72..7b7936a8ad 100644 --- a/scripts/common.py +++ b/scripts/common.py @@ -30,6 +30,8 @@ import subprocess import sys encoding = locale.getdefaultlocale()[1] +if not encoding: + encoding = 'UTF-8' def is_windows_platform(): return sys.platform.startswith('win') |