This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年10月20日 17:49 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| encoding_koi8_t.patch | serhiy.storchaka, 2014年10月20日 17:56 | |||
| Messages (10) | |||
|---|---|---|---|
| msg229739 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年10月20日 17:49 | |
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, issue20087). 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) |
|||
| msg229740 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年10月20日 18:45 | |
Ah, actually Apple uses (a fork of) GNU libiconv. So I should correct links. |
|||
| msg242964 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年05月12日 11:20 | |
Ping. |
|||
| msg242978 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2015年05月12日 15:22 | |
Looks good to me. |
|||
| msg243006 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年05月12日 20:24 | |
New changeset 78de5d040492 by Serhiy Storchaka in branch 'default': Issue #22681: Added support for the koi8_t encoding. https://hg.python.org/cpython/rev/78de5d040492 |
|||
| msg243016 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2015年05月12日 21:21 | |
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) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1869, in test_basics name = codecs.lookup(encoding).name LookupError: unknown encoding: koi8_t ====================================================================== ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/source/Lib/test/test_codecs.py", line 2024, in test_decoder_state self.check_state_handling_decode(encoding, u, u.encode(encoding)) LookupError: unknown encoding: koi8_t ====================================================================== ERROR: test_seek (test.test_codecs.BasicUnicodeTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/source/Lib/test/test_codecs.py", line 1992, in test_seek reader = codecs.getreader(encoding)(io.BytesIO(s.encode(encoding))) File "/py/dev/3x/blds/uxd/../../source/Lib/codecs.py", line 998, in getreader return lookup(encoding).streamreader LookupError: unknown encoding: koi8_t ---------------------------------------------------------------------- Ran 211 tests in 5.970s FAILED (errors=5, skipped=17) |
|||
| msg243017 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2015年05月12日 21:22 | |
Also the 10.6 (Snow Leopard) buildbot: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/3125/steps/test/logs/stdio |
|||
| msg243020 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年05月12日 21:35 | |
New changeset def3bab79c8f by Serhiy Storchaka in branch 'default': Added forgotten new files for issues #22681 and #22682. https://hg.python.org/cpython/rev/def3bab79c8f |
|||
| msg243021 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年05月12日 21:36 | |
Thanks Ned. I just forgive to add new encoding files. |
|||
| msg243026 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2015年05月12日 22:13 | |
All better, thanks! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:09 | admin | set | github: 66871 |
| 2015年05月12日 22:13:32 | ned.deily | set | messages: + msg243026 |
| 2015年05月12日 21:36:53 | serhiy.storchaka | set | messages: + msg243021 |
| 2015年05月12日 21:35:20 | python-dev | set | messages: + msg243020 |
| 2015年05月12日 21:22:47 | ned.deily | set | messages: + msg243017 |
| 2015年05月12日 21:21:15 | ned.deily | set | nosy:
+ ned.deily messages: + msg243016 |
| 2015年05月12日 20:28:32 | serhiy.storchaka | set | status: open -> closed assignee: serhiy.storchaka resolution: fixed stage: patch review -> resolved |
| 2015年05月12日 20:24:40 | python-dev | set | nosy:
+ python-dev messages: + msg243006 |
| 2015年05月12日 15:22:45 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg242978 |
| 2015年05月12日 11:20:33 | serhiy.storchaka | set | messages: + msg242964 |
| 2014年10月28日 14:30:20 | jwilk | set | nosy:
+ jwilk |
| 2014年10月20日 18:45:13 | serhiy.storchaka | set | messages: + msg229740 |
| 2014年10月20日 17:58:59 | serhiy.storchaka | link | issue22679 dependencies |
| 2014年10月20日 17:56:21 | serhiy.storchaka | set | files:
+ encoding_koi8_t.patch keywords: + patch |
| 2014年10月20日 17:49:30 | serhiy.storchaka | create | |