Date: Mon, 03 Dec 2007 11:51:41 +0100 From: Christoph Mallon <christoph.mallon@gmx.de> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no> Cc: Andrey Chernov <ache@nagual.pp.ru>, das@FreeBSD.org, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-src@FreeBSD.ORG Subject: Re: cvs commit: src/tools/regression/lib/libc/stdio test-printfloat.c test-scanfloat.c Message-ID: <4753DFBD.8070609@gmx.de> In-Reply-To: <86odd8dqq1.fsf@ds4.des.no> References: <200712030718.lB37IlLc009328@repoman.freebsd.org> <20071203072214.GA11030@VARK.MIT.EDU> <20071203080739.GA56795@nagual.pp.ru> <86odd8dqq1.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote: > Andrey Chernov <ache@nagual.pp.ru> writes: >> David Schultz <das@FreeBSD.org> writes: >>> test-printfloat is failing on my machine due to the fact that the >>> default locale in FreeBSD seems to have a thousands separator now. >>> I thought the default locale wasn't supposed to. Can someone >>> comment? >> Default locale don't have thousands separator as you can see: >> [...] >> Something wrong in your default locale setup, use LC_ALL=C for sure. > > If a regression test is dependent on a specific locale, it should set > the locale at startup rather than rely on the system default. Don't C programs per definition always start in the "C" locale, not matter what LC_ALL etc. are set to? Ah, I just checked the source code: There is a setlocale(LC_NUMERIC, "") in there. Christoph
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4753DFBD.8070609>