std::locale on Freebsd 9.1
Jonathan Wakely
jwakely.gcc@gmail.com
Wed Jul 17 00:07:00 GMT 2013
On 17 July 2013 00:09, Sam Varshavchik wrote:
> Constructing a std::locale("en_US.UTF-8") throws a std::runtime error on
> FreeBSD 9.1, with g++ 4.9
>
> I thought that locale support was not available in 9.0 and earlier because
> it lacked xlocale. But, from what I can see, FreeBSD 9.1 has xlocale.h
>
> Is something else is still missing, or is there something wrong with the gcc
> 4.9 port, on FreeBSD?
Does the libstdc++ configure script show something like this?
Checking for C locale to use... darwin or freebsd
If not xlocale.h won't be used.
Even if it's used I'm not sure how well named locales work with the
darwin model, I think they fail even on Mac OS X for anything except
"C" and "POSIX", so maybe the same is true of FreeBSD. The closest
thing I have to a reference for that is Bug ID# 13969869 for
http://bugreport.apple.com but I can't see that report myself.
More information about the Libstdc++
mailing list