Use cp1252 on Windows for the wxWidgets build too,

and add a note to the README about it.
This commit is contained in:
Robin Dunn
2016-02-29 19:11:49 -08:00
parent e07098db6d
commit 5c029d5955
2 changed files with 14 additions and 3 deletions

View File

@@ -160,7 +160,8 @@ def getoutput(cmd):
output = None
output = sp.stdout.read()
if sys.version_info > (3,):
output = output.decode('utf-8') # TODO: is utf-8 okay here?
outputEncoding = 'cp1252' if sys.platform == 'win32' else 'utf-8'
output = output.decode(outputEncoding)
output = output.rstrip()
rval = sp.wait()
if rval: