[9fans] plan9 legacy tcs -t unicode sucks last char
term% echo 'öäü'| tcs -t unicode| tcs -f unicode; echo öä term% this looks quite wrong! I will post a fix tomorrow noone else feels guilty. Regards, Ingo Krabbe
Re: [9fans] plan9 legacy tcs -t unicode sucks last char
On Mon, Sep 22, 2014 at 2:19 PM, Ingo Krabbe wrote: > I will post a fix tomorrow noone else feels guilty. I can't tell if you already know the answer and are teasing us - but, I will wade in... I think the problem is in src/cmd/tcs/tcs.c, comparing unicode_out and unicode_out_be it looks like the former is trying to write out 32-bit Runes as if they were 16-bit uints. If you try echo 12345 | tcs -t unicode | xd -1x you can see what it's doing. Pete