[SG16-Unicode] [isocpp-lib] New issue: Are std::format field widths code units, code points, or something else?

Thiago Macieira thiago at macieira.org
Wed Sep 11 01:55:46 CEST 2019


On Tuesday, 10 September 2019 08:18:50 PDT Steve Downey wrote:
> Even with monospace fonts you can't just rely on number of characters once
> you are beyond ASCII. Han characters are often double wide.

AND it depends on the renderer. If the producer and the renderer are different 
applications, like a text application and a graphical terminal, you don't know 
whether the renderer will count the same number of cell grids as you expected.

However, I think it's reasonable to assume that the renderer will understand 
the producer's output, assuming of course assigned code points. Applications 
outputting unassigned should expect GIGO.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products





More information about the Unicode mailing list