]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
This stopped working on Windows, due to a reference to the non-existent
authorTim Peters <tim.peters@gmail.com>
Tue, 5 Nov 2002 03:49:09 +0000 (03:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 5 Nov 2002 03:49:09 +0000 (03:49 +0000)
_locale.getdefaultlocale.  Guessing a leading underscore was intended,
but don't really understood this stuff (locale looks like Spanish for
the opposite of global to me <wink>).

Lib/locale.py

index 9ae981f9a13f213c8019017c06a27ad3a0ab6acb..8a26744ed088546461a98ad70b954e07311d9adc 100644 (file)
@@ -397,7 +397,7 @@ if sys.platform in ('win32', 'darwin', 'mac'):
     def getpreferredencoding(do_setlocale = True):
         """Return the charset that the user is likely using."""
         import _locale
-        return _locale.getdefaultlocale()[1]
+        return _locale._getdefaultlocale()[1]
 else:
     # On Unix, if CODESET is available, use that.
     try: