Is it possible to create your own custom locale

Posted by smerlin on Stack Overflow See other posts from Stack Overflow or by smerlin
Published on 2010-04-26T09:58:41Z Indexed on 2010/04/26 10:03 UTC
Read the original article Hit count: 338

Filed under:
|

Since Windows doesnt have a C++ locale with UTF8 support by default, i would like to construct a custom locale object which supports UTF8 (by creating it with a custom ctype facet).

How can i construct a locale object with a my own ctype implementation (i only found functions to construct a locale using an already existing locale as base..)

If C++ does not support construction of locales with a custom ctype facet at all, why is that so ?

© Stack Overflow or respective owner

Related posts about c++

Related posts about locale