tech-toolchain archive

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

Re: c++: how to print UTF-8 characters in locale?



On Sun, Aug 04, 2019 at 09:55:13PM +0300, Valeriy E. Ushakov wrote:
> On Sun, Aug 04, 2019 at 17:25:38 +0200, Thomas Klausner wrote:
> 
> > where the space is a 0xC2A0 non-breaking space.
> 
> Nit-pick: 0xc2a0 is a very misleading way to write it.
> It is 0xc2 0xa0 which is utf-8 encoding of \u00a0
> 
> > Thousands separator for fr_FR.UTF-8 is '%
> > 
> > Where '%' is my shell's idea of telling me the output ended there
> > without a newline character.
> 
> What is the real output for this (don't have current handy)?  Can you
> drop all the verbosity and just output the separator and pipe it to
> hexdump -C or something?

Not a single byte is printed for the french locale thousands separator
if I try to print it this way. I.e. as if a NUL byte was printed.
 Thomas


Home | Main Index | Thread Index | Old Index