From e17e703e3e9c5892509747d9e4b85a2121f01e3e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 14 Dec 2014 00:17:43 +0100 Subject: [PATCH] Minor bug fix (for Windows nagging message about Unicode data) --- lib/core/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/convert.py b/lib/core/convert.py index 5979c9d91..2cd58bb64 100644 --- a/lib/core/convert.py +++ b/lib/core/convert.py @@ -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 "