Boost logo

Boost :

Subject: [boost] boost::filesystem -- using non-POSIX locale crashes on Solaris
From: JonathonS (thejunkjon_at_[hidden])
Date: 2012-08-25 21:51:23


Hi,

I am currently using boost::filesystem::path on Solaris, and I noticed
that if I set the locale to anything except "C" or "POSIX" such as
"en_US.UTF-8", that it crashes i.e. a run-time error gets thrown. I
found a link describing the issue here:
https://svn.boost.org/trac/boost/ticket/5928

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?

Thanks,
J


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