[pypy-commit] pypy py3k: On linux, set ascii as the default locale if none can be found

rguillebert noreply at buildbot.pypy.org
Tue Jan 17 12:25:26 CET 2012


Author: Romain Guillebert <romain.py at gmail.com>
Branch: py3k
Changeset: r51393:16202ef48d39
Date: 2012-01-17 12:23 +0100
http://bitbucket.org/pypy/pypy/changeset/16202ef48d39/

Log:	On linux, set ascii as the default locale if none can be found

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
@@ -33,6 +33,8 @@
     base_encoding = "mbcs"
 elif sys.platform == "darwin":
     base_encoding = "utf-8"
+elif sys.platform == "linux2":
+    base_encoding = "ascii"
 else:
     base_encoding = None
 


More information about the pypy-commit mailing list