From owner-cvs-all@FreeBSD.ORG Mon Dec 3 10:51:46 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9301316A420 for ; Mon, 3 Dec 2007 10:51:46 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id EA4D613C4D9 for ; Mon, 3 Dec 2007 10:51:45 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 03 Dec 2007 10:51:42 -0000 Received: from p54A3C470.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.196.112] by mail.gmx.net (mp011) with SMTP; 03 Dec 2007 11:51:42 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX19mXWB9NeFm7XM+/x+b9Jj/v3t2BQAs2TDjGUyiU2 AmC5gEv9liQ8Dr Message-ID: <4753DFBD.8070609@gmx.de> Date: Mon, 03 Dec 2007 11:51:41 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.6 (X11/20070806) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <200712030718.lB37IlLc009328@repoman.freebsd.org> <20071203072214.GA11030@VARK.MIT.EDU> <20071203080739.GA56795@nagual.pp.ru> <86odd8dqq1.fsf@ds4.des.no> In-Reply-To: <86odd8dqq1.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: Andrey Chernov , 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2007 10:51:46 -0000 Dag-Erling Smørgrav wrote: > Andrey Chernov writes: >> David Schultz 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