IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 348 forks source link

Implement _codecs_cn, _codecs_hk, _codecs_jp, _codecs_kr, and _codecs_tw modules #315

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

Modules _codecs_cn, _codecs_hk, _codecs_jp, _codecs_kr, _codecs_tw are not implemented.

So any codecs using these modules dont work.

D:\MerlinSrc\External\Languages\IronPython20\25\Lib>ipyd
IronPython 2.0 Beta (2.0.0.1000) on .NET 2.0.50727.1434
Copyright (c) Microsoft Corporation. All rights reserved.

import encodings
import codecs
codecs.lookup("big5")
Traceback (most recent call last):
File , line unknown, in Initialize##297
LookupError: unknown encoding: big5

Work Item Details

Original CodePlex Issue: Issue 15507 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Mar 8, 2008 at 2:06 AM Reported by: srivatsn Updated on: Feb 22, 2013 at 2:15 AM Updated by: jdhardy

ironpythonbot commented 9 years ago

On 2008-03-09 13:02:50 UTC, sanxiyn commented:

However, big5 encoding works. This is a codec registry issue. unichr(0x4e00).encode('big5') == '\xa4\x40'