Commits

philip_thiem committed ac407f1

forgot to add in the mac default.

Comments (0)

Files changed (1)

setuptools/svn_utils.py

         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