On Mon, Sep 22, 2014 at 2:19 PM, Ingo Krabbe <ikrabbe....@gmail.com> 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