From 73c86d052de82327bdd0e22dd35de55f78d4186b Mon Sep 17 00:00:00 2001 From: Philip Thiem Date: Thu, 21 Nov 2013 17:25:55 -0600 Subject: forgot to add in the mac default. --- setuptools/svn_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setuptools/svn_utils.py b/setuptools/svn_utils.py index 93ddb292..e8570e52 100644 --- a/setuptools/svn_utils.py +++ b/setuptools/svn_utils.py @@ -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 -- cgit v1.2.1