Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f0eeedf0
Commit
f0eeedf0
authored
May 12, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22681: Added support for the koi8_t encoding.
parent
ad8a1c3f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
4 deletions
+16
-4
Doc/library/codecs.rst
Doc/library/codecs.rst
+4
-0
Doc/whatsnew/3.5.rst
Doc/whatsnew/3.5.rst
+3
-0
Lib/locale.py
Lib/locale.py
+1
-0
Lib/test/test_codecs.py
Lib/test/test_codecs.py
+1
-0
Lib/test/test_unicode.py
Lib/test/test_unicode.py
+4
-3
Lib/test/test_xml_etree.py
Lib/test/test_xml_etree.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/codecs.rst
View file @
f0eeedf0
...
...
@@ -1160,6 +1160,10 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
|
koi8_r | | Russian |
+-----------------+--------------------------------+--------------------------------+
|
koi8_t | | Tajik |
|
| | |
|
| | .. versionadded:: 3.5 |
+-----------------+--------------------------------+--------------------------------+
|
koi8_u | | Ukrainian |
+-----------------+--------------------------------+--------------------------------+
|
kz1048 | kz_1048, strk1048_2002, rk1048 | Kazakh |
...
...
Doc/whatsnew/3.5.rst
View file @
f0eeedf0
...
...
@@ -234,6 +234,9 @@ Some smaller changes made to the core Python language are:
* New Kazakh :ref:`codec <standard-encodings>` ``kz1048``. (Contributed by
Serhiy Storchaka in :issue:`22682`.)
* New Tajik :ref:`codec <standard-encodings>` ``koi8_t``. (Contributed by
Serhiy Storchaka in :issue:`22681`.)
New Modules
===========
...
...
Lib/locale.py
View file @
f0eeedf0
...
...
@@ -699,6 +699,7 @@ locale_encoding_alias = {
'euc_kr'
:
'eucKR'
,
'utf_8'
:
'UTF-8'
,
'koi8_r'
:
'KOI8-R'
,
'koi8_t'
:
'KOI8-T'
,
'koi8_u'
:
'KOI8-U'
,
'kz1048'
:
'RK1048'
,
'cp1251'
:
'CP1251'
,
...
...
Lib/test/test_codecs.py
View file @
f0eeedf0
...
...
@@ -1822,6 +1822,7 @@ all_unicode_encodings = [
"iso8859_9"
,
"johab"
,
"koi8_r"
,
"koi8_t"
,
"koi8_u"
,
"kz1048"
,
"latin_1"
,
...
...
Lib/test/test_unicode.py
View file @
f0eeedf0
...
...
@@ -2081,7 +2081,8 @@ class UnicodeTest(string_tests.CommonTest,
'cp863'
,
'cp865'
,
'cp866'
,
'cp1125'
,
'iso8859_10'
,
'iso8859_13'
,
'iso8859_14'
,
'iso8859_15'
,
'iso8859_2'
,
'iso8859_3'
,
'iso8859_4'
,
'iso8859_5'
,
'iso8859_6'
,
'iso8859_7'
,
'iso8859_9'
,
'koi8_r'
,
'kz1048'
,
'latin_1'
,
'iso8859_7'
,
'iso8859_9'
,
'koi8_r'
,
'koi8_t'
,
'koi8_u'
,
'kz1048'
,
'latin_1'
,
'mac_cyrillic'
,
'mac_latin2'
,
'cp1250'
,
'cp1251'
,
'cp1252'
,
'cp1253'
,
'cp1254'
,
'cp1255'
,
...
...
@@ -2109,14 +2110,14 @@ class UnicodeTest(string_tests.CommonTest,
'cp863'
,
'cp865'
,
'cp866'
,
'cp1125'
,
'iso8859_10'
,
'iso8859_13'
,
'iso8859_14'
,
'iso8859_15'
,
'iso8859_2'
,
'iso8859_4'
,
'iso8859_5'
,
'iso8859_9'
,
'koi8_r'
,
'latin_1'
,
'iso8859_9'
,
'koi8_r'
,
'
koi8_u'
,
'
latin_1'
,
'mac_cyrillic'
,
'mac_latin2'
,
### These have undefined mappings:
#'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255',
#'cp1256', 'cp1257', 'cp1258',
#'cp424', 'cp856', 'cp857', 'cp864', 'cp869', 'cp874',
#'iso8859_3', 'iso8859_6', 'iso8859_7', 'kz1048',
#'iso8859_3', 'iso8859_6', 'iso8859_7', 'k
oi8_t', 'k
z1048',
#'mac_greek', 'mac_iceland','mac_roman', 'mac_turkish',
### These fail the round-trip:
...
...
Lib/test/test_xml_etree.py
View file @
f0eeedf0
...
...
@@ -704,7 +704,7 @@ class ElementTreeTest(unittest.TestCase):
'mac-roman'
,
'mac-turkish'
,
'iso2022-jp'
,
'iso2022-jp-1'
,
'iso2022-jp-2'
,
'iso2022-jp-2004'
,
'iso2022-jp-3'
,
'iso2022-jp-ext'
,
'koi8-r'
,
'koi8-u'
,
'kz1048'
,
'koi8-r'
,
'koi8-
t'
,
'koi8-
u'
,
'kz1048'
,
'hz'
,
'ptcp154'
,
]
for
encoding
in
supported_encodings
:
...
...
Misc/NEWS
View file @
f0eeedf0
...
...
@@ -42,6 +42,8 @@ Core and Builtins
Library
-------
- Issue #22681: Added support for the koi8_t encoding.
- Issue #22682: Added support for the kz1048 encoding.
- Issue #23796: peak and read1 methods of BufferedReader now raise ValueError
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment