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.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, pascal.bach
Date 2008-08-22.19:20:25
SpamBayes Score 0.002333019
Marked as misclassified No
Message-id <1219432826.07.0.0629579268657.issue3649@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-08-22 19:20:26amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pascal.bach
2008-08-22 19:20:26amaury.forgeotdarcsetmessageid: <1219432826.07.0.0629579268657.issue3649@psf.upfronthosting.co.za>
2008-08-22 19:20:25amaury.forgeotdarclinkissue3649 messages
2008-08-22 19:20:25amaury.forgeotdarccreate