Kaydet (Commit) a326f47a authored tarafından Tim Peters's avatar Tim Peters

This stopped working on Windows, due to a reference to the non-existent

_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>).
üst bc5e3cc3
...@@ -397,7 +397,7 @@ if sys.platform in ('win32', 'darwin', 'mac'): ...@@ -397,7 +397,7 @@ if sys.platform in ('win32', 'darwin', 'mac'):
def getpreferredencoding(do_setlocale = True): def getpreferredencoding(do_setlocale = True):
"""Return the charset that the user is likely using.""" """Return the charset that the user is likely using."""
import _locale import _locale
return _locale.getdefaultlocale()[1] return _locale._getdefaultlocale()[1]
else: else:
# On Unix, if CODESET is available, use that. # On Unix, if CODESET is available, use that.
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment