From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 00:19:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C14516A4CE for ; Thu, 30 Oct 2003 00:19:38 -0800 (PST) Received: from waagh.belial.pl.eu.org (pb136.zakrzowek.sdi.tpnet.pl [80.49.176.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9842943FDF for ; Thu, 30 Oct 2003 00:19:36 -0800 (PST) (envelope-from isaac@belial.pl.eu.org) Received: by waagh.belial.pl.eu.org (Postfix, from userid 1000) id 70BD7AD70D; Thu, 30 Oct 2003 09:19:34 +0100 (CET) Date: Thu, 30 Oct 2003 09:19:34 +0100 From: DM To: freebsd-questions@freebsd.org Message-ID: <20031030091934.A4266@waagh.ustronet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: g++ && imbue locale X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 08:19:38 -0000 Hello. I'm having problem with locale in g++ on freebsd (5.1-RELEASE-p2). Following program should print 1,6 whereas it prints 1.6 #include using namespace std; int main() { cout.imbue( locale("pl_PL.ISO_8859-2") ); cout << 1.6 << endl ; return 0; } It refers to g++ 3.2.2 located in basesystem and port g++ 3.2.3 (maybe to others too). After comparing configure args in gcc 3.2.3 port and in linux debian, where it works, I added --enable-clocale=generic. So now I have: g++32 -v Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd5.1/3.2.3/specs Configured with: ./..//gcc-3.2.3/configure --disable-nls --enable-clocale=generic --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.1/3.2.3/include/g++-v3 --with-system-zlib --includedir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.1/3.2.3/include/Java --disable-shared --prefix=/usr/local i386-portbld-freebsd5.1 Thread model: posix gcc version 3.2.3 but it still does not work. Does any one know how to "turn on" proper locale behaviour? Thanks in advance. -- DM