91106cd9ff
* Add -X utf8 command line option, PYTHONUTF8 environment variable and a new sys.flags.utf8_mode flag. * If the LC_CTYPE locale is "C" at startup: enable automatically the UTF-8 mode. * Add _winapi.GetACP(). encodings._alias_mbcs() now calls _winapi.GetACP() to get the ANSI code page * locale.getpreferredencoding() now returns 'UTF-8' in the UTF-8 mode. As a side effect, open() now uses the UTF-8 encoding by default in this mode. * Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding in the UTF-8 Mode. * Update subprocess._args_from_interpreter_flags() to handle -X utf8 * Skip some tests relying on the current locale if the UTF-8 mode is enabled. * Add test_utf8mode.py. * _Py_DecodeUTF8_surrogateescape() gets a new optional parameter to return also the length (number of wide characters). * pymain_get_global_config() and pymain_set_global_config() now always copy flag values, rather than only copying if the new value is greater than the old value. |
||
---|---|---|
.. | ||
__init__.py | ||
aliases.py | ||
ascii.py | ||
base64_codec.py | ||
big5.py | ||
big5hkscs.py | ||
bz2_codec.py | ||
charmap.py | ||
cp037.py | ||
cp273.py | ||
cp424.py | ||
cp437.py | ||
cp500.py | ||
cp720.py | ||
cp737.py | ||
cp775.py | ||
cp850.py | ||
cp852.py | ||
cp855.py | ||
cp856.py | ||
cp857.py | ||
cp858.py | ||
cp860.py | ||
cp861.py | ||
cp862.py | ||
cp863.py | ||
cp864.py | ||
cp865.py | ||
cp866.py | ||
cp869.py | ||
cp874.py | ||
cp875.py | ||
cp932.py | ||
cp949.py | ||
cp950.py | ||
cp1006.py | ||
cp1026.py | ||
cp1125.py | ||
cp1140.py | ||
cp1250.py | ||
cp1251.py | ||
cp1252.py | ||
cp1253.py | ||
cp1254.py | ||
cp1255.py | ||
cp1256.py | ||
cp1257.py | ||
cp1258.py | ||
cp65001.py | ||
euc_jis_2004.py | ||
euc_jisx0213.py | ||
euc_jp.py | ||
euc_kr.py | ||
gb2312.py | ||
gb18030.py | ||
gbk.py | ||
hex_codec.py | ||
hp_roman8.py | ||
hz.py | ||
idna.py | ||
iso2022_jp.py | ||
iso2022_jp_1.py | ||
iso2022_jp_2.py | ||
iso2022_jp_3.py | ||
iso2022_jp_2004.py | ||
iso2022_jp_ext.py | ||
iso2022_kr.py | ||
iso8859_1.py | ||
iso8859_2.py | ||
iso8859_3.py | ||
iso8859_4.py | ||
iso8859_5.py | ||
iso8859_6.py | ||
iso8859_7.py | ||
iso8859_8.py | ||
iso8859_9.py | ||
iso8859_10.py | ||
iso8859_11.py | ||
iso8859_13.py | ||
iso8859_14.py | ||
iso8859_15.py | ||
iso8859_16.py | ||
johab.py | ||
koi8_r.py | ||
koi8_t.py | ||
koi8_u.py | ||
kz1048.py | ||
latin_1.py | ||
mac_arabic.py | ||
mac_centeuro.py | ||
mac_croatian.py | ||
mac_cyrillic.py | ||
mac_farsi.py | ||
mac_greek.py | ||
mac_iceland.py | ||
mac_latin2.py | ||
mac_roman.py | ||
mac_romanian.py | ||
mac_turkish.py | ||
mbcs.py | ||
oem.py | ||
palmos.py | ||
ptcp154.py | ||
punycode.py | ||
quopri_codec.py | ||
raw_unicode_escape.py | ||
rot_13.py | ||
shift_jis.py | ||
shift_jis_2004.py | ||
shift_jisx0213.py | ||
tis_620.py | ||
undefined.py | ||
unicode_escape.py | ||
unicode_internal.py | ||
utf_7.py | ||
utf_8.py | ||
utf_8_sig.py | ||
utf_16.py | ||
utf_16_be.py | ||
utf_16_le.py | ||
utf_32.py | ||
utf_32_be.py | ||
utf_32_le.py | ||
uu_codec.py | ||
zlib_codec.py |