problems with STL on FreeBSD 5.3

Paolo Carlini pcarlini@suse.de
Fri Apr 1 16:29:00 GMT 2005


Darko Miletic wrote:

> Recently I installed FreeBSD 5.3 release on my machine, since I'm
> trying to port some C++ library to this OS. The problem is that I can
> not use std::locale class. Whatever locale I specify other than "C" it
> throws exception
> locale::facet::_S_create_c_locale name not valid
>
> I tried en_US.ISO8859-1, en_US.UTF-8, en_US.ISO8859-15 etc. But error
> persists. So are there any resolution for this kind of problems?

I'm afraid that short-term there isn't one: FreeBSD doesn't use glibc,
right? Currently, named locale are supported only on GNU systems. There
are quite a few requests for this feature and maybe the situation will
change in the future...

Paolo.



More information about the Libstdc++ mailing list