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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2012-07-17.08:15:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342512958.35.0.341191772548.issue15379@psf.upfronthosting.co.za>
In-reply-to
Content
Yet one inconsistency in charmap codec.

>>> import codecs
>>> codecs.charmap_decode(b'\x00', 'strict', '\U0002000B')
('𠀋', 1)
>>> codecs.charmap_decode(b'\x00', 'strict', {0: '\U0002000B'})
('𠀋', 1)
>>> codecs.charmap_decode(b'\x00', 'strict', {0: 0x2000B})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: character mapping must be in range(65536)

The suggested patch removes this unnecessary limitation in charmap decoder.
History
Date User Action Args
2012-07-17 08:15:58serhiy.storchakasetrecipients: + serhiy.storchaka
2012-07-17 08:15:58serhiy.storchakasetmessageid: <1342512958.35.0.341191772548.issue15379@psf.upfronthosting.co.za>
2012-07-17 08:15:57serhiy.storchakalinkissue15379 messages
2012-07-17 08:15:57serhiy.storchakacreate