This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::locale on Freebsd 9.1
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Sam Varshavchik <mrsam at courier-mta dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 17 Jul 2013 01:07:49 +0100
- Subject: Re: std::locale on Freebsd 9.1
- References: <cone dot 1374016142 dot 258887 dot 32578 dot 1000 at monster dot email-scan dot com>
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.