Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2001 20:01:28 +0600 (NOVT)
From:      nnd@mail.nsk.ru
To:        current@freebsd.org
Subject:   Re: setlocale() fails
Message-ID:  <200102131401.f1DE1SI31513@wint.itfs.nsk.su>
In-Reply-To: <86y9vbdm9r.wl@daemon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102131401.f1DE1SI31513>