[pypy-svn] r64531 - in pypy/trunk/pypy: config doc/config

afa at codespeak.net afa at codespeak.net
Tue Apr 21 17:57:12 CEST 2009

Author: afa
Date: Tue Apr 21 17:57:11 2009
New Revision: 64531

The pypy/module/_locale module may be incomplete,
but on Windows it works much much better than the ctypes version.

Enable it by default on win32, this should clear the failures in test_locale and test_site.

Modified: pypy/trunk/pypy/config/pypyoption.py
--- pypy/trunk/pypy/config/pypyoption.py	(original)
+++ pypy/trunk/pypy/config/pypyoption.py	Tue Apr 21 17:57:11 2009
@@ -46,6 +46,10 @@
     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
 if sys.platform == "sunos5":
     del working_modules['mmap']   # depend on ctypes, can't get at c-level 'errono'
     del working_modules['rctime'] # depend on ctypes, missing tm_zone/tm_gmtoff

Modified: pypy/trunk/pypy/doc/config/objspace.usemodules._locale.txt
--- pypy/trunk/pypy/doc/config/objspace.usemodules._locale.txt	(original)
+++ pypy/trunk/pypy/doc/config/objspace.usemodules._locale.txt	Tue Apr 21 17:57:11 2009
@@ -1,3 +1,3 @@
 Use the '_locale' module.
 This module runs _locale written in RPython (instead of ctypes version).
-It's not really finished yet.
+It's not really finished yet; it's enabled by default on Windows.

More information about the Pypy-commit mailing list