Commit 7fbee015 authored by Gabriel's avatar Gabriel

Don't wrap sys.stdout if it's in the correct encoding already.

--HG--
branch : distribute
extra : rebase_source : 314a8be1a2e63ceaf501ecb047a29f62302be0a0
parent b42f4d2e
......@@ -657,6 +657,9 @@ class Distribution(_Distribution):
if not isinstance(sys.stdout, io.TextIOWrapper):
return _Distribution.handle_display_options(self, option_order)
if sys.stdout.encoding.lower() in ('utf-8', 'utf8'):
return _Distribution.handle_display_options(self, option_order)
# Print metadata in UTF-8 no matter the platform
encoding = sys.stdout.encoding
errors = sys.stdout.errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment