[New-bugs-announce] [issue6714] memmove fails with unicode strings
Giorgos Verigakis
report at bugs.python.org
Sun Aug 16 23:32:53 CEST 2009
New submission from Giorgos Verigakis <verigak at gmail.com>:
A demonstration:
>>> buf = create_string_buffer('______')
>>> memmove(buf, 'SPAM', 4)
614584
>>> buf.raw
'SPAM__\x00'
>>> buf = create_string_buffer('______')
>>> memmove(buf, u'SPAM', 4)
614672
>>> buf.raw
'S\x00\x00\x00__\x00'
FWIW memmove fails in Python 3.0 too.
----------
assignee: theller
components: ctypes
messages: 91644
nosy: theller, verigak
severity: normal
status: open
title: memmove fails with unicode strings
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6714>
_______________________________________
More information about the New-bugs-announce
mailing list