From owner-freebsd-current Tue Feb 13 9:10: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id A293B37B491 for ; Tue, 13 Feb 2001 09:10:01 -0800 (PST) Received: from ark.cris.net (ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id TAA58499; Tue, 13 Feb 2001 19:08:25 +0200 (EET) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id f1DH8Jl17878; Tue, 13 Feb 2001 19:08:19 +0200 (EET) Date: Tue, 13 Feb 2001 19:08:19 +0200 From: Alexey Zelkin To: Akinori MUSHA Cc: nnd@mail.nsk.ru, current@FreeBSD.ORG Subject: Re: setlocale() fails Message-ID: <20010213190819.A17503@ark.cris.net> References: <86y9vbdm9r.wl@daemon.local.idaemons.org> <200102131401.f1DE1SI31513@wint.itfs.nsk.su> <86vgqeeh8w.wl@archon.local.idaemons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <86vgqeeh8w.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Wed, Feb 14, 2001 at 12:26:39AM +0900 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, Yep! You was completely correct, I made mistake in mostly cosmetics "style(9)" commit :-( Thanks for spoting that! BTW, problem should be fixed as side effect of my commit made some time ago related to __part_load_locale() interface change. Check it please. On Wed, Feb 14, 2001 at 12:26:39AM +0900, Akinori MUSHA wrote: > At Tue, 13 Feb 2001 20:01:28 +0600 (NOVT), > nnd@mail.nsk.ru wrote: > > Yes this patch permits 'setlocale(LC_ALL, "")' to return > > success, but it is not solve the problem totally. It seems to me > > that all comparisons of the return value from '__part_load_locale' > > in the 'lmessages.c', 'lnumeric.c' and 'lmonetary.c' are reversed now > > and your patch correct only one of them (but this one prevents > > setlocale to work for all locales but "C" and "POSIX"). > > All reversed? It seems to me at least the comparison in the line 65 > of lmessages.c is correct, and the ones in lnumeric.c and lmonetary.c > look fine as well. Let's have your say, Alexey! ;) > > -- > / > /__ __ Akinori.org / MUSHA.org > / ) ) ) ) / FreeBSD.org / Ruby-lang.org > Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp > > "We're only at home when we're on the run, on the wing, on the fly" -- /* Alexey Zelkin && phantom@cris.net */ /* Tavric National University && phantom@FreeBSD.org */ /* Sysadmin/Developer && phantom@sms.umc.com.ua */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message