Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:
The provided file does not work for "EXTENSION" characters:
>>> import ia5
>>> u"[a]".encode("ia5")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ia5.py", line 18, in encode
return codecs.charmap_encode(input,errors,encoding_map)
TypeError: character mapping must be in range(256)
I doubt this can be achieved with just a charmap. You will have to roll
your own incremental stateful decoder.
Are you willing to do it?
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3649>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com