[pypy-svn] r75039 - pypy/branch/unfreeze-encodings/pypy/module/sys

fijal at codespeak.net fijal at codespeak.net
Thu Jun 3 01:24:29 CEST 2010


Author: fijal
Date: Thu Jun  3 01:24:28 2010
New Revision: 75039

Modified:
   pypy/branch/unfreeze-encodings/pypy/module/sys/interp_encoding.py
Log:
Obscure specialcase


Modified: pypy/branch/unfreeze-encodings/pypy/module/sys/interp_encoding.py
==============================================================================
--- pypy/branch/unfreeze-encodings/pypy/module/sys/interp_encoding.py	(original)
+++ pypy/branch/unfreeze-encodings/pypy/module/sys/interp_encoding.py	Thu Jun  3 01:24:28 2010
@@ -40,6 +40,8 @@
         rlocale.setlocale(rlocale.LC_CTYPE, "")
         loc_codeset = rlocale.nl_langinfo(rlocale.CODESET)
         if loc_codeset:
+            if loc_codeset == 'ANSI_X3.4-1968':
+                loc_codeset = 'ascii'
             codecmod = space.getbuiltinmodule('_codecs')
             w_res = space.call_function(space.getattr(codecmod,
                                                       space.wrap('lookup')),



More information about the Pypy-commit mailing list