[pypy-svn] r77008 - pypy/branch/fast-forward/pypy/config

afa at codespeak.net afa at codespeak.net
Sat Sep 11 00:55:23 CEST 2010


Author: afa
Date: Sat Sep 11 00:55:21 2010
New Revision: 77008

Modified:
   pypy/branch/fast-forward/pypy/config/pypyoption.py
Log:
On Windows, site.py accesses the user's default codepage.
the _locale module must be enabled.


Modified: pypy/branch/fast-forward/pypy/config/pypyoption.py
==============================================================================
--- pypy/branch/fast-forward/pypy/config/pypyoption.py	(original)
+++ pypy/branch/fast-forward/pypy/config/pypyoption.py	Sat Sep 11 00:55:21 2010
@@ -48,9 +48,8 @@
     del working_modules["termios"]
     del working_modules["_minimal_curses"]
 
-    # The _locale module is probably incomplete,
-    # but enough for the tests to pass on Windows
-    working_modules["_locale"] = None
+    # The _locale module is needed by site.py on Windows
+    default_modules["_locale"] = None
 
 if sys.platform == "sunos5":
     del working_modules['mmap']   # depend on ctypes, can't get at c-level 'errono'



More information about the Pypy-commit mailing list