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 doerwalter
Recipients doerwalter
Date 2008-08-30.13:05:17
SpamBayes Score 0.00063663063
Marked as misclassified No
Message-id <1220101519.85.0.185335325424.issue3739@psf.upfronthosting.co.za>
In-reply-to
Content
The encoder for the "unicode-internal" codec reports the wrong length:

Python 3.0b3+ (py3k, Aug 30 2008, 11:55:21) 
[GCC 4.0.1 (Apple Inc. build 5484)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import codecs
>>> codecs.getencoder("unicode-internal")("a")
(b'a\x00', 2)

I would have expected it to output:

(b'a\x00', 1)

instead.
History
Date User Action Args
2008-08-30 13:05:20doerwaltersetrecipients: + doerwalter
2008-08-30 13:05:19doerwaltersetmessageid: <1220101519.85.0.185335325424.issue3739@psf.upfronthosting.co.za>
2008-08-30 13:05:18doerwalterlinkissue3739 messages
2008-08-30 13:05:17doerwaltercreate