Minor bug fix (for Windows nagging message about Unicode data)

This commit is contained in:
Miroslav Stampar 2014-12-14 00:17:43 +01:00
parent fb645b90f7
commit e17e703e3e

View File

@ -159,7 +159,7 @@ def stdoutencode(data):
if IS_WIN:
output = data.encode(sys.stdout.encoding, "replace")
if '?' in output:
if '?' in output and '?' not in data:
warnMsg = "cannot properly display Unicode characters "
warnMsg += "inside Windows OS command prompt "
warnMsg += "(http://bugs.python.org/issue1602). All "