Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4df75 commit ad8a1c3Copy full SHA for ad8a1c3
8 files changed
Doc/library/codecs.rst
@@ -1162,6 +1162,10 @@ particular, the following variants typically exist:
1162
+-----------------+--------------------------------+--------------------------------+
1163
| koi8_u | | Ukrainian |
1164
1165
+| kz1048 | kz_1048, strk1048_2002, rk1048 | Kazakh |
1166
+| | | |
1167
+| | | .. versionadded:: 3.5 |
1168
++-----------------+--------------------------------+--------------------------------+
1169
| mac_cyrillic | maccyrillic | Bulgarian, Byelorussian, |
1170
| | | Macedonian, Russian, Serbian |
1171
Doc/whatsnew/3.5.rst
@@ -231,6 +231,9 @@ Some smaller changes made to the core Python language are:
231
* The :option:`-b` option now affects comparisons of :class:`bytes` with
232
:class:`int`. (Contributed by Serhiy Storchaka in :issue:`23681`)
233
234
+* New Kazakh :ref:`codec <standard-encodings>` ``kz1048``. (Contributed by
235
+ Serhiy Storchaka in :issue:`22682`.)
236
+
237
238
New Modules
239
===========
Lib/encodings/aliases.py
@@ -412,6 +412,11 @@
412
# koi8_r codec
413
'cskoi8r' : 'koi8_r',
414
415
+ # kz1048 codec
416
+ 'kz_1048' : 'kz1048',
417
+ 'rk1048' : 'kz1048',
418
+ 'strk1048_2002' : 'kz1048',
419
420
# latin_1 codec
421
#
422
# Note that the latin_1 codec is implemented internally in C and a
Lib/locale.py
@@ -700,6 +700,7 @@ def getpreferredencoding(do_setlocale = True):
700
'utf_8': 'UTF-8',
701
'koi8_r': 'KOI8-R',
702
'koi8_u': 'KOI8-U',
703
+ 'kz1048': 'RK1048',
704
'cp1251': 'CP1251',
705
'cp1255': 'CP1255',
706
'cp1256': 'CP1256',
Lib/test/test_codecs.py
@@ -1823,6 +1823,7 @@ def test_basic(self):
1823
"johab",
1824
"koi8_r",
1825
"koi8_u",
1826
+ "kz1048",
1827
"latin_1",
1828
"mac_cyrillic",
1829
"mac_greek",
Lib/test/test_unicode.py
@@ -2081,7 +2081,7 @@ def test_codecs_charmap(self):
2081
'cp863', 'cp865', 'cp866', 'cp1125',
2082
'iso8859_10', 'iso8859_13', 'iso8859_14', 'iso8859_15',
2083
'iso8859_2', 'iso8859_3', 'iso8859_4', 'iso8859_5', 'iso8859_6',
2084
- 'iso8859_7', 'iso8859_9', 'koi8_r', 'latin_1',
+ 'iso8859_7', 'iso8859_9', 'koi8_r', 'kz1048', 'latin_1',
2085
'mac_cyrillic', 'mac_latin2',
2086
2087
'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255',
@@ -2116,7 +2116,7 @@ def test_codecs_charmap(self):
2116
#'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255',
2117
#'cp1256', 'cp1257', 'cp1258',
2118
#'cp424', 'cp856', 'cp857', 'cp864', 'cp869', 'cp874',
2119
- #'iso8859_3', 'iso8859_6', 'iso8859_7',
+ #'iso8859_3', 'iso8859_6', 'iso8859_7', 'kz1048',
2120
#'mac_greek', 'mac_iceland','mac_roman', 'mac_turkish',
2121
2122
### These fail the round-trip:
Lib/test/test_xml_etree.py
@@ -704,7 +704,7 @@ def bxml(encoding):
'mac-roman', 'mac-turkish',
'iso2022-jp', 'iso2022-jp-1', 'iso2022-jp-2', 'iso2022-jp-2004',
'iso2022-jp-3', 'iso2022-jp-ext',
707
- 'koi8-r', 'koi8-u',
+ 'koi8-r', 'koi8-u', 'kz1048',
708
'hz', 'ptcp154',
709
]
710
for encoding in supported_encodings:
Misc/NEWS
@@ -42,6 +42,8 @@ Core and Builtins
42
Library
43
-------
44
45
+- Issue #22682: Added support for the kz1048 encoding.
46
47
- Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
48
if they called on a closed object. Patch by John Hergenroeder.
49
0 commit comments