New submission from Giorgos Verigakis <veri...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6714> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com