J
James Kanze
Yannick Tremblay wrote:
[...]
True, but I think Unicode locales could be implemented for characters
only, leaving the rest unchanged (as they are).
For example:
would change only the character set, keeping the rest of the
locale settings as they are either they were previously
defined or they are the default ones.
That's not quite how locales work. What I think your talking
about is a UTF16 codecvt facet. And there are ways of
constructing a local by copying another locale, just replacing a
single facet. Of course, the ctype facet is also affected; part
of the problem in doing this cleanly is that abstractions that
we'd like to keep separate get mixed up. (Note that this can be
a problem even within a pure Unicode environment. Something
like toupper( 'i' ) is locale dependent, and will return a
different character in a Turkish locale.)