Message155373
poq: I still remain opposed to exposing wcswidth, since it is just as incorrect as any of the other solutions that people have circulated. I could agree to it if it was called "wcswidth", making it clear that it does whatever the C library does, with whatever semantics the C library wants to give to it (and an availability that depends on whether the C library supports it or not).
That would probably cover the nurses use cases, except that it is not only incorrect with respect to Unicode, but also incorrect with respect to what the terminal may be doing. I guess users would use it anyway.
For Python's internal use, I could accept using the sombok algorithm. I wouldn't expose it, since it again would trick people into believing that it was correct in some sense. Perhaps calling it sombok_width might allow for exposing it. |
|
Date |
User |
Action |
Args |
2012-03-11 03:26:12 | loewis | set | recipients:
+ loewis, vstinner, ezio.melotti, Arfrever, inigoserna, zeha, poq, Nicholas.Cole, tchrist |
2012-03-11 03:26:12 | loewis | set | messageid: <1331436372.32.0.0780302548094.issue12568@psf.upfronthosting.co.za> |
2012-03-11 03:26:11 | loewis | link | issue12568 messages |
2012-03-11 03:26:10 | loewis | create | |
|