From owner-freebsd-current Tue Feb 13 6: 1:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from wint.itfs.nsk.su (wint.itfs.nsk.su [212.20.32.43]) by hub.freebsd.org (Postfix) with ESMTP id D335437B491 for ; Tue, 13 Feb 2001 06:01:30 -0800 (PST) Received: (from nnd@localhost) by wint.itfs.nsk.su (8.11.2/8.11.1) id f1DE1SI31513; Tue, 13 Feb 2001 20:01:28 +0600 (NOVT) (envelope-from nnd) Date: Tue, 13 Feb 2001 20:01:28 +0600 (NOVT) Message-Id: <200102131401.f1DE1SI31513@wint.itfs.nsk.su> From: nnd@mail.nsk.ru To: current@freebsd.org Subject: Re: setlocale() fails In-Reply-To: <86y9vbdm9r.wl@daemon.local.idaemons.org> X-Newsgroups: itfs.freebsd.current User-Agent: tin/1.5.8-20010204 ("Paradise Regained") (UNIX) (FreeBSD/5.0-CURRENT (i386)) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <86y9vbdm9r.wl@daemon.local.idaemons.org> you wrote: > > At Tue, 13 Feb 2001 07:21:15 +0900, > I wrote: >> I found that setlocale() always fails on -current. ..... >> Any ideas? > > I found the culprit. Here is a patch which fixes the problem. 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"). N.Dudorov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message