[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wcsftime output encoding



Roger Leigh wrote:
> Viewed as hexadecimal (aligned for comparison):
> "Narrow" UTF-8:
>     П     т     н     
> ==> d0 9f d1 82 d0 bd 

In UCS-4 these would be

      0000041F  00000442  0000043D

> "Wide" (unknown):
>       B  =   
> ==> 1f 42 3d  

So you can see that it simply used the low 8 bit of every UCS-4 character.
Which is broken. Before reporting this as a bug to the GCC people, you
might want to find out whether it's a bug in std::wcsftime or a bug in
the std::wcout stream.

Bruno


--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/