Boost logo

Boost :

Subject: Re: [boost] [locale] [filesystem] Windows local 8 bit encoding
From: Thiel, Bjoern (bjoern.thiel_at_[hidden])
Date: 2012-11-27 06:52:23

Hi Artyom,

> Currently win32 API supports only UTF-8 encodings, so you need to one of:
> - compile with ICU
> - select std backend (because the default without ICU on windows is win32)
> - disable win32 backend (in build options) so only std backend would be used. But you should note that under
> Windows only MSVC has std backend support, for gcc and ANSI encodings you need ICU,

Is there reason why win32 and std backend behave differently here?

Using std locale get_system_locale() method works for code pages
of the form 'windows-XXX'. Others e.g. 'Shift_JIS' should fail.

And if you want the CURRENT locale on Microsoft Windows, I simply can't
see how to get that.

But why not add generator.generate( void ) giving exactly that.

Best regards


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