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 Nicholas.Cole, ezio.melotti, inigoserna, loewis, tchrist, vstinner, zeha
Date 2011-10-14.01:32:56
SpamBayes Score 1.3340597e-05
Marked as misclassified No
Message-id <1318555977.71.0.0605434329374.issue12568@psf.upfronthosting.co.za>
In-reply-to
Content
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...
History
Date User Action Args
2011-10-14 01:32:57vstinnersetrecipients: + vstinner, loewis, ezio.melotti, inigoserna, zeha, Nicholas.Cole, tchrist
2011-10-14 01:32:57vstinnersetmessageid: <1318555977.71.0.0605434329374.issue12568@psf.upfronthosting.co.za>
2011-10-14 01:32:57vstinnerlinkissue12568 messages
2011-10-14 01:32:56vstinnercreate