STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Patch fixing unicode-internal encoder for unicode string input: return 
the length of the input string (number of characters) and not the 
internal size (number of bytes needed to store the text). I wrote a 
small test, I hope that it will be enough (to test the function).

If the input is not an unicode string, return the number of bytes (I 
leaved this case unchanged).

----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file13875/issue3739.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3739>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to