[Python-Dev] Regression in unicodestr.encode()? (original) (raw)
Martin v. Loewis martin@v.loewis.de
10 Apr 2002 22:04:13 +0200
- Previous message: [Python-Dev] Regression in unicodestr.encode()?
- Next message: [Python-Dev] Regression in unicodestr.encode()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"M.-A. Lemburg" <mal@lemburg.com> writes:
> Ah, yes, you're right.
That is... instrumenting the codec I get these results: [...] cbWritten=126, cbAllocated=144 end of string = 'ck git und' '\xe6\xad\xa3\xe7\xa2\xba\xe3....das Nunstuck git u \x8f' (the last two bytes seem to be random data, they change from run to run)
Are you saying it does not write past cbAllocated? It certainly does: Just check then length of the encoded string. In the corrected version, the proper length of the encoded string is 158.
Regards, Martin
- Previous message: [Python-Dev] Regression in unicodestr.encode()?
- Next message: [Python-Dev] Regression in unicodestr.encode()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]