Imbueing UTF-8 locale

Is there a generic UTF-8 locale?
I tried "en_US.UTF8" (and "en_US.UTF-8" ) but they seem to not be working on MinGW (runtime_error thrown as stated when the locale is not available).
Windows doesn't support Unicode in C or C++, except through non-standard APIs or where required by the C++11 standard (std::codecvt_utf8 and friends). So no UTF-8 locales.

You can get portable equivalent (and better) functionality from boost.locale: http://www.boost.org/doc/libs/release/libs/locale/doc/html/index.html . From what I've read, it can be compiled with mingw and ICU
"Good" to know.
Is there any suggested way to convert from X locale to UTF-8, or should I walk my way through the stuff missing from MinGW about locales?

http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.200x
See 22.4.1 and 22.5.
22.3.3.2.2 related?
Topic archived. No new replies allowed.