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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to