Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Cannot paste unicode <0221>, <0234> - <024f>



On 28 kwietnia 2017 at 16:42:17, Peter Stephenson (p.stephenson@xxxxxxxxxxx) wrote:
> It might be possible to rely *only* on wcwidth() in cases where we're
> using a replacement? Does anyone from the Apple world have any
> opinions?

This is a situation where having compile-time tests and equipped redundant survival-thing should yield a edge case where problem can be managed and solved despite hard conditions. There is always a difficult for eyes question: Why not always rely on internal wcwidth? Sorry for this question, I'm pro clever redundancy.

A fact: it is easy to detect <0234>-alike problem – test 0234 character in wcwidth configure check, define BROKEN_WCWIDTH. Ideal following solution: add iswprint test of 0234 to configure, use BROKEN_ISWPRINT. It should be easy.

Broken wcwidth might imply broken iswprint, so you might be right about simple approach – to rely only on internal wcwidth when BROKEN_WCWIDTH, i.e. skip iswprint. Are there some opinions on this?

-- 
Sebastian Gniazdowski
psprint /at/ zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author