Boost logo

Boost Users :

Subject: Re: [Boost-users] Inconsistent unicode encoding between boost andwx onmac osx
From: Patrick Horgan (phorgan1_at_[hidden])
Date: 2010-02-14 15:38:13


Peter Dimov wrote:
> Peter Dimov wrote:
>> In the meantime, you could try
>>
>> boost::filesystem::wpath_traits::imbue( std::locale( ".UTF-8" ) );
>
> Unfortunately, this
>
> http://stackoverflow.com/questions/1745045/stdlocale-breakage-on-macos-10-6-with-langenus-utf-8
>
>
> says that UTF-8 locales are broken on Mac OS X, so it probably won't
> work. Sorry.
What about making a locale from the C locale replacing the codecvt_facet
in the locale with the UTF-8 one from boost. and then imbuing the new
locale? Would it look like the C locale but with a UTF-8
codecvt_facet? Don't know if it would work.

Patrick


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net