Date: Tue, 29 Aug 2000 17:19:56 +0100 From: Konstantin Chuguev <Konstantin.Chuguev@dante.org.uk> To: Alexey Zelkin <phantom@cris.crimea.ua> Cc: "Andrey A. Chernov" <ache@nagual.pp.ru>, i18n@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Request for review: locale aliases support for libc Message-ID: <39ABE2AC.CD4C68CF@dante.org.uk> References: <20000829140102.A29555@ark.cris.net> <20000829151857.A90464@nagual.pp.ru> <20000829152733.A90577@nagual.pp.ru> <20000829172651.A80899@ark.cris.net> <20000829190047.A91611@nagual.pp.ru> <20000829182449.A142@ark.cris.net> <39ABD828.3E56A782@dante.org.uk> <20000829190008.A5824@ark.cris.net>
index | next in thread | previous in thread | raw e-mail
Alexey Zelkin wrote:
> > > > You need to check LC_* existence corresponding to setlocale() request
> > > > made.
> > >
> > > What to check if LC_ALL request is given ?
>
> > LC_ALL overrides all other LC_* variables. If it is set, there is no need to
> > check anything else.
>
> > Then you should check all other LC_*, and then LANG.
>
> As I understand you're answering in concept, but we are talking about
> exact case right now (see may patches attached to previous letter)
>
> I am trying to realize "is requested locale physicaly present on this system"
> or it's just an alias. Currently I am just testing presence of
> /usr/share/locale/$requested_locale/LC_CTYPE and make decision depends
> on stat(2) return value.
>
Perhaps you should check presence of any of the following files in a locale
directory:
LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_TIME,
and proceed if any of them has been found...
--
* * Konstantin Chuguev - Application Engineer
* * Francis House, 112 Hills Road
* Cambridge CB2 1PQ, United Kingdom
D A N T E WWW: http://www.dante.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39ABE2AC.CD4C68CF>
