Message145778
| 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). |
|