Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: You could start with utf_8.py, and of course replace the calls to codecs.utf_8_encode and codecs.utf_8_decode.
- your "ia5_encode" follows this interface: http://docs.python.org/dev/library/codecs.html#codecs.Codec.encode - your "ia5_decode" has the signature: def ia5_decode(input, errors='strict', final=False) and returns a tuple (output object, length consumed). See http://docs.python.org/dev/library/codecs.html#codecs.IncrementalDecoder.decode for an explanation of the final parameter; in particular, if the input is a single 0x1B, - it will return ('', 0) if final is False - and raise UnicodeDecodeError("unexpected end of data") if final is True _______________________________________ 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