Boost logo

Boost :

Subject: Re: [boost] Review Request: Boost.Locale
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-05-24 06:53:43

Artyom wrote:
> However there is still a limitation when working with 2 byte
> characters (ie char16_t or wchar_t under windows) as
> Boost.Locale would work correctly only with UCS-2

> But this is actually C++ standard's limitation.


I've always wondered about this, so will take this chance for clarification.
Isn't this rather windows compilers' non-compliance?
"Type wchar_t is a distinct type whose values can represent distinct codes for all members of the largest
extended character set specified among the supported locales (22.1.1). Type wchar_t shall have the same
size, signedness, and alignment requirements (3.9) as one of the other integral types, called its underlying
So _if_ any supported locale can handle characters outside of BMP, the implementation will qualify as non-conforming according to this paragraph. I know that windows OS itself can handle such characters, so I'd expect supported std locales to be able to handle them as well, but I haven't checked that.

Any clarification on this matter would be appreciated.

Thank you,

Boost list run by bdawes at, gregod at, cpdaniel at, john at