Message145778
>> 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). |
|
Date |
User |
Action |
Args |
2011-10-18 07:49:16 | loewis | set | recipients:
+ loewis, vstinner, ezio.melotti, inigoserna, zeha, Nicholas.Cole, tchrist |
2011-10-18 07:49:15 | loewis | link | issue12568 messages |
2011-10-18 07:49:15 | loewis | create | |
|