Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] using locales on Solaris with GCC
From: JonathonS (thejunkjon_at_[hidden])
Date: 2012-09-19 23:42:12


Thanks Nate for the link. It does look promising, but I am using
Boost 1.47.0 and I can't upgrade unfortunately. It looks like Locale
was introduced in Boost 1.49.0.

Is there a way to tell boost filesystem to not use locales and to
treat all paths as UTF-8? Solaris paths are native UTF-8 and my
customers will always pass in UTF-8 paths so there is no reason for
them to be translated.

Thanks,
J

On Wed, Sep 19, 2012 at 1:58 PM, Nathan Crookston
<nathan.crookston_at_[hidden]> wrote:
> Hi,
>
> On Wed, Sep 19, 2012 at 1:44 PM, JonathonS <thejunkjon_at_[hidden]> wrote:
>> Hi,
>>
>> I am currently battling a buggy locale implementation (or lack
>> thereof) in GCC on Solaris, which is affecting my use of
>> boost::filesystem.
>>
>> Please have a look at the following thread for more information regarding this:
>> http://gcc.gnu.org/ml/gcc-help/2009-09/msg00212.html
>>
>> In short, Solaris/GCC has a huge limitation that it does not support
>> locales besides "C" or "POSIX". I talked to the GCC folks regarding
>> this issue, and they said that at ONE time, GCC implemented the locale
>> support for Solaris, but over time, the code was not maintained and
>> therefore died :(
>
>> So, my question is whether anyone knows of a work-around for this?
>
> I haven't tried it, but would using boost::locale in conjunction with
> filesystem work? Perhaps imbuing an ICU-backed locale would help, as
> shown in:
> <http://www.boost.org/doc/libs/1_50_0/libs/locale/doc/html/default_encoding_under_windows.html>
>
> HTH,
> Nate
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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