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 vstinner
Recipients ezio.melotti, loewis, pitrou, python-dev, vstinner
Date 2011-11-21.02:09:16
SpamBayes Score 0.00071787153
Marked as misclassified No
Message-id <1321841357.14.0.579519553254.issue13441@psf.upfronthosting.co.za>
In-reply-to
Content
> strxfrm(buffer, "a\0", 100) returns 21 (bytes) but only 2 bytes
> are written ("\x01\x00"). The next bytes are unchanged.

Woops, it was a bug in my program. I attached the fixed version. The correct program writes:
----
strxfrm: len=21
0x01
0x01
0x63
0x01
0x01
0x01
0x01
0x01
0x03
0x01
0x01
0x01
0x01
0x01
0x03
0x01
0x01
0x01
0x01
0x01
0x01

wcsxfrm: len=7
U+1010163
U+1010101
U+1010103
U+1010101
U+1010103
U+1010101
U+1010101
----
History
Date User Action Args
2011-11-21 02:09:17vstinnersetrecipients: + vstinner, loewis, pitrou, ezio.melotti, python-dev
2011-11-21 02:09:17vstinnersetmessageid: <1321841357.14.0.579519553254.issue13441@psf.upfronthosting.co.za>
2011-11-21 02:09:16vstinnerlinkissue13441 messages
2011-11-21 02:09:16vstinnercreate