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 Arfrever, Nicholas.Cole, ezio.melotti, inigoserna, loewis, poq, tchrist, vstinner, zeha
Date 2012-03-11.03:26:10
SpamBayes Score 6.1925086e-05
Marked as misclassified No
Message-id <1331436372.32.0.0780302548094.issue12568@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-03-11 03:26:12loewissetrecipients: + loewis, vstinner, ezio.melotti, Arfrever, inigoserna, zeha, poq, Nicholas.Cole, tchrist
2012-03-11 03:26:12loewissetmessageid: <1331436372.32.0.0780302548094.issue12568@psf.upfronthosting.co.za>
2012-03-11 03:26:11loewislinkissue12568 messages
2012-03-11 03:26:10loewiscreate