Author: Amber Brown <hawk...@atleastfornow.net>
Branch: 
Changeset: r82138:3bd88741ae4e
Date: 2016-02-10 12:29 +0800
http://bitbucket.org/pypy/pypy/changeset/3bd88741ae4e/

Log:    Make the default filesystem encoding ASCII

diff --git a/pypy/module/sys/interp_encoding.py 
b/pypy/module/sys/interp_encoding.py
--- a/pypy/module/sys/interp_encoding.py
+++ b/pypy/module/sys/interp_encoding.py
@@ -34,7 +34,11 @@
 elif sys.platform == "darwin":
     base_encoding = "utf-8"
 else:
-    base_encoding = None
+    # In CPython, the default base encoding is NULL. This is paired with a
+    # comment that says "If non-NULL, this is different than the default
+    # encoding for strings". Therefore, the default filesystem encoding is the
+    # default encoding for strings, which is ASCII.
+    base_encoding = "ascii"
 
 def _getfilesystemencoding(space):
     encoding = base_encoding
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to