summaryrefslogtreecommitdiff
path: root/setuptools/svn_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/svn_utils.py')
-rw-r--r--setuptools/svn_utils.py7
1 files 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