Re: A bug with UTF-8 output in a console

2011-02-07 Thread Corinna Vinschen
On Feb 7 01:31, Bengt Larsson wrote: > I think I have found a bug with UTF-8 output in a console in a UTF-8 > locale ("C.UTF-8"). If an UTF-8 character straddles a write() boundary, > then the output gets garbled. > > An example program is attached. Thanks for the t

A bug with UTF-8 output in a console

2011-02-06 Thread Bengt Larsson
I think I have found a bug with UTF-8 output in a console in a UTF-8 locale ("C.UTF-8"). If an UTF-8 character straddles a write() boundary, then the output gets garbled. An example program is attached. buftest.c Description: Binary data -- Problem reports: http://