Commit 73c86d05 authored by Philip Thiem's avatar Philip Thiem

forgot to add in the mac default.

parent 3f505373
......@@ -91,9 +91,12 @@ def determine_console_encoding():
encoding = None
#olders pythons defaulted to this
is_osx = sys.platform == "darwin"
if not encoding:
return "US-ASCII"
elif encoding.startswith("mac-") and os.platform == "darwin":
return ["utf-8", "US-ASCII"][is_osx]
elif encoding.startswith("mac-") and is_osx:
#certain version of pythons would return mac-roman as default
#OSX as a left over of earlier mac versions.
return "utf-8"
else:
return encoding
......
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