Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] using locales on Solaris with GCC
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2012-09-19 16:58:31


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 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