[issue12568] Add functions to get the width in columns of a character
STINNER Victor
report at bugs.python.org
Fri Oct 14 03:32:57 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Oh, unicode_width.patch of issue #2382 implements the width on Windows using:
WideCharToMultiByte(CP_ACP, 0, buf, len, NULL, 0, NULL, NULL);
It computes the length of byte string encoded to the ANSI code page. I don't know if it can be seen as the "width" of a character string in the console...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12568>
_______________________________________
More information about the Python-bugs-list
mailing list