cpython/Lib/encodings
Victor Stinner 91106cd9ff
bpo-29240: PEP 540: Add a new UTF-8 Mode (#855)
* 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.
2017-12-13 12:29:09 +01:00
..
__init__.py bpo-29240: PEP 540: Add a new UTF-8 Mode (#855) 2017-12-13 12:29:09 +01:00
aliases.py Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup 2016-09-06 19:42:27 -07:00
ascii.py
base64_codec.py #7475: Remove references to '.transform' from transform codec docstrings. 2014-03-13 20:54:30 -04:00
big5.py
big5hkscs.py
bz2_codec.py Issue #19619: Blacklist non-text codecs in method API 2014-02-24 14:43:03 +02:00
charmap.py
cp037.py
cp273.py #1097797: Add CP273 codec, and exercise it in the test suite 2013-11-10 13:44:30 -05:00
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 Fixed incorrectly applying a patch for issue19668. 2013-11-23 19:50:47 +02:00
cp869.py
cp874.py
cp875.py
cp932.py
cp949.py
cp950.py
cp1006.py
cp1026.py
cp1125.py Fixed incorrectly applying a patch for issue19668. 2013-11-23 19:50:47 +02:00
cp1140.py
cp1250.py
cp1251.py
cp1252.py
cp1253.py
cp1254.py
cp1255.py
cp1256.py
cp1257.py
cp1258.py
cp65001.py Issue #20574: Implement incremental decoder for cp65001 code 2014-03-17 23:08:06 +01:00
euc_jis_2004.py
euc_jisx0213.py
euc_jp.py
euc_kr.py
gb2312.py
gb18030.py
gbk.py
hex_codec.py #7475: Remove references to '.transform' from transform codec docstrings. 2014-03-13 20:54:30 -04:00
hp_roman8.py Add some "used with permission" mentions where external resources are referenced. 2016-01-15 09:53:51 -08:00
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 Added forgotten new files for issues #22681 and #22682. 2015-05-13 00:34:53 +03:00
koi8_u.py
kz1048.py Added forgotten new files for issues #22681 and #22682. 2015-05-13 00:34:53 +03:00
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 Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup 2016-09-06 19:42:27 -07:00
palmos.py
ptcp154.py
punycode.py
quopri_codec.py Issue #16473: Fix byte transform codec documentation; test quotetabs=True 2015-09-12 00:34:28 +00:00
raw_unicode_escape.py
rot_13.py Issue #21171: Fixed undocumented filter API of the rot13 codec. 2014-04-13 17:07:04 +03:00
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 Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
utf_16_be.py
utf_16_le.py
utf_32.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
utf_32_be.py
utf_32_le.py
uu_codec.py Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x. 2014-11-07 14:04:37 +02:00
zlib_codec.py #7475: Remove references to '.transform' from transform codec docstrings. 2014-03-13 20:54:30 -04:00