[pypy-svn] r74015 - pypy/trunk/pypy/module/_locale

afa at codespeak.net afa at codespeak.net
Fri Apr 23 13:39:54 CEST 2010


Author: afa
Date: Fri Apr 23 13:39:53 2010
New Revision: 74015

Modified:
   pypy/trunk/pypy/module/_locale/interp_locale.py
Log:
cConfig is now in rlib.rlocale


Modified: pypy/trunk/pypy/module/_locale/interp_locale.py
==============================================================================
--- pypy/trunk/pypy/module/_locale/interp_locale.py	(original)
+++ pypy/trunk/pypy/module/_locale/interp_locale.py	Fri Apr 23 13:39:53 2010
@@ -319,11 +319,11 @@
         buf_country = lltype.malloc(rffi.CCHARP.TO, BUFSIZE, flavor='raw')
 
         try:
-            if (GetLocaleInfo(cConfig.LOCALE_USER_DEFAULT,
-                              cConfig.LOCALE_SISO639LANGNAME,
+            if (GetLocaleInfo(rlocale.cConfig.LOCALE_USER_DEFAULT,
+                              rlocale.cConfig.LOCALE_SISO639LANGNAME,
                               buf_lang, BUFSIZE) and
-                GetLocaleInfo(cConfig.LOCALE_USER_DEFAULT,
-                              cConfig.LOCALE_SISO3166CTRYNAME,
+                GetLocaleInfo(rlocale.cConfig.LOCALE_USER_DEFAULT,
+                              rlocale.cConfig.LOCALE_SISO3166CTRYNAME,
                               buf_country, BUFSIZE)):
                 lang = rffi.charp2str(buf_lang)
                 country = rffi.charp2str(buf_country)
@@ -333,8 +333,8 @@
             # If we end up here, this windows version didn't know about
             # ISO639/ISO3166 names (it's probably Windows 95).  Return the
             # Windows language identifier instead (a hexadecimal number)
-            elif GetLocaleInfo(cConfig.LOCALE_USER_DEFAULT,
-                               cConfig.LOCALE_IDEFAULTLANGUAGE,
+            elif GetLocaleInfo(rlocale.cConfig.LOCALE_USER_DEFAULT,
+                               rlocale.cConfig.LOCALE_IDEFAULTLANGUAGE,
                                buf_lang, BUFSIZE):
                 lang = rffi.charp2str(buf_lang)
                 return space.newtuple([space.wrap("0x%s" % lang),



More information about the Pypy-commit mailing list