From owner-cvs-all Sat Feb 10 12:40:39 2001 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 3E7E737B401; Sat, 10 Feb 2001 12:40:19 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.2/8.11.2) id f1AKeIm77452; Sat, 10 Feb 2001 23:40:18 +0300 (MSK) (envelope-from ache) Date: Sat, 10 Feb 2001 23:40:18 +0300 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/locale fix_grouping.c Makefile.inc lmonetary.c lnumeric.c localeconv.c Message-ID: <20010210234017.A77336@nagual.pp.ru> References: <200102101536.f1AFalt39792@freefall.freebsd.org> <20010210203601.A75114@nagual.pp.ru> <20010210221658.A55284@ark.cris.net> <20010210232201.A77154@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010210232201.A77154@nagual.pp.ru>; from ache@nagual.pp.ru on Sat, Feb 10, 2001 at 11:22:01PM +0300 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Feb 10, 2001 at 23:22:01 +0300, Andrey A. Chernov wrote: > On Sat, Feb 10, 2001 at 22:16:58 +0200, Alexey Zelkin wrote: > > > lmonetary.c lnumeric.c: > > > C locale - numempty[] is wrong. It is double-converted as result. It must > > > be "-1". > > How ? Conversion is related to loaded locale part only. It does not > > affect predefined _C_ locale structures. > > What happens if you load "C" or "POSIX" locale > explicetly? part_load_locale return 0 after checking for "POSIX" or "C", > i.e. ret == 0 and _fix_locale_grouping _happens_ on C locale, i.e. double > conversion happens. What about changing if (!ret) to if (!ret && _numeric_using_locale) -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message