Boost logo

Boost :

Subject: Re: [boost] boost::filesystem -- using non-POSIX locale crashes on Solaris
From: Jookia (166291_at_[hidden])
Date: 2012-08-26 05:56:04


On 26/08/12 19:15, Artyom Beilis wrote:
>
>
> I think it is related to this ticket:
>
> https://svn.boost.org/trac/boost/ticket/5289
>
> Note: under Solaris, the libstdc++ library does not
> support any locales besides C and POSIX due to lack to the native OS API.
>
> In general there are many locale related design issues in boost::filesystem.
>
> Using locale for POSIX OS API when you don't actually use wide API is
> inherently wrong under POSIX platforms:
>
> http://cppcms.com/files/nowide/html/index.html#qna
>
>> My question is though, whether it is possible to use boost::filesystem
>> without locales? Meaning, if I know my string is a UTF-8 string, is
>> it possible to avoid the locale processing within the boost
>> filesystem?

Have you tried the Boost.Locale library? It allows Boost.Filesystem to
use UTF-8 paths, at least from what I understand. In fact, that's
something I need to go pry apart.

http://www.boost.org/doc/libs/1_50_0/libs/locale/doc/html/default_encoding_under_windows.html


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk