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 loewis
Recipients Nicholas.Cole, ezio.melotti, inigoserna, loewis, tchrist, vstinner, zeha
Date 2011-10-18.07:49:15
SpamBayes Score 4.585862e-05
Marked as misclassified No
Message-id <4E9D2F78.20807@v.loewis.de>
In-reply-to <1318876622.45.0.601866463809.issue12568@psf.upfronthosting.co.za>
Content
>> I'm -1 on using wcswidth, though.
> 
> When you write text into a console on Linux (e.g. displayed by
> gnome-terminal or konsole), I suppose that wcswidth() can be used to
> compute the width of a line. It would help to fix #2382.
> 
> Or do you think that wcswidth() gives the wrong result for this use
> case?

No, I think that using it is not necessary. If you want to compute the
width of a line, use unicodedata.east_asian_width. And yes, wcswidth
may sometimes produce "incorrect" results (although it's probably
correct most of the time).
History
Date User Action Args
2011-10-18 07:49:16loewissetrecipients: + loewis, vstinner, ezio.melotti, inigoserna, zeha, Nicholas.Cole, tchrist
2011-10-18 07:49:15loewislinkissue12568 messages
2011-10-18 07:49:15loewiscreate