Ignore:
Timestamp:
Oct 22, 2010, 10:46:09 PM (15 years ago)
Author:
Yuri Dario
Message:

python: use current codepage as charset in locale settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/gettext.py

    r2 r60  
    150150    else:
    151151        codeset = ''
     152       
     153    # use new os2 code to get current codepage
     154    if pos == -1 and os.name == "os2":
     155        import _locale
     156        codeset = _locale._getdefaultlocale()[1]
     157        mask |= COMPONENT_CODESET
     158
    152159    pos = locale.find('_')
    153160    if pos >= 0:
Note: See TracChangeset for help on using the changeset viewer.