Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e17e703

Browse files
committed
Minor bug fix (for Windows nagging message about Unicode data)
1 parent fb645b9 commit e17e703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def stdoutencode(data):
159159
if IS_WIN:
160160
output = data.encode(sys.stdout.encoding, "replace")
161161

162-
if '?' in output:
162+
if '?' in output and '?' not in data:
163163
warnMsg = "cannot properly display Unicode characters "
164164
warnMsg += "inside Windows OS command prompt "
165165
warnMsg += "(http://bugs.python.org/issue1602). All "

0 commit comments

Comments
 (0)