You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2015-05-12.20:28:32.820>created_at=<Date2014-10-20.17:49:30.945>labels= ['type-feature', 'library']
title='Add support of KOI8-T encoding'updated_at=<Date2015-05-12.22:13:32.308>user='https://github.com/serhiy-storchaka'
KOI8-T is Tajik encoding partially compatible with KOI8-R. This is default encoding of Tajik locale tg_TJ in glibc (but in X11 locale.alias file it is KOI8-C, bpo-20087).
Proposed patch adds support for this encoding. I have not found official mapping of KOI8-T and have used a table from Apple's implementation of libiconv. It matches a table in Wikipedia [2] and GNU iconv.
Activity
serhiy-storchaka commentedon Oct 20, 2014
KOI8-T is Tajik encoding partially compatible with KOI8-R. This is default encoding of Tajik locale tg_TJ in glibc (but in X11 locale.alias file it is KOI8-C, bpo-20087).
Proposed patch adds support for this encoding. I have not found official mapping of KOI8-T and have used a table from Apple's implementation of libiconv. It matches a table in Wikipedia [2] and GNU iconv.
[1] http://www.opensource.apple.com/source/libiconv/libiconv-4/libiconv/tests/KOI8-T.TXT
[2] https://ru.wikipedia.org/wiki/КОИ-8 (Russian)
serhiy-storchaka commentedon Oct 20, 2014
Ah, actually Apple uses (a fork of) GNU libiconv. So I should correct links.
serhiy-storchaka commentedon May 12, 2015
Ping.
amauryfa commentedon May 12, 2015
Looks good to me.
python-dev commentedon May 12, 2015
New changeset 78de5d040492 by Serhiy Storchaka in branch 'default':
Issue bpo-22681: Added support for the koi8_t encoding.
https://hg.python.org/cpython/rev/78de5d040492
ned-deily commentedon May 12, 2015
Lots of "LookupError: unknown encoding: koi8_t" test failures (on OS X 10.10) after this commit, for example, in test_codecs:
======================================================================
ERROR: test_basics (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
======================================================================
ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
======================================================================
ERROR: test_seek (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Ran 211 tests in 5.970s
FAILED (errors=5, skipped=17)
ned-deily commentedon May 12, 2015
Also the 10.6 (Snow Leopard) buildbot:
http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/3125/steps/test/logs/stdio
python-dev commentedon May 12, 2015
New changeset def3bab79c8f by Serhiy Storchaka in branch 'default':
Added forgotten new files for issues bpo-22681 and bpo-22682.
https://hg.python.org/cpython/rev/def3bab79c8f
serhiy-storchaka commentedon May 12, 2015
Thanks Ned. I just forgive to add new encoding files.
ned-deily commentedon May 12, 2015
All better, thanks!