diff options
| author | Philip Thiem <ptthiem@gmail.com> | 2013-11-21 17:25:55 -0600 |
|---|---|---|
| committer | Philip Thiem <ptthiem@gmail.com> | 2013-11-21 17:25:55 -0600 |
| commit | 0e3de03e1905a1e3aad189b59a15ce7cf2e913f5 (patch) | |
| tree | 8a4647d67d00e2b75e2ae122cf8b2a007ff26eed /setuptools/svn_utils.py | |
| parent | dd421f3c80d2e0da4a1985074452b057065f335e (diff) | |
| download | python-setuptools-bitbucket-0e3de03e1905a1e3aad189b59a15ce7cf2e913f5.tar.gz | |
forgot to add in the mac default.
Diffstat (limited to 'setuptools/svn_utils.py')
| -rw-r--r-- | setuptools/svn_utils.py | 7 |
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
|
