Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2001 23:34:25 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: HEADS UP: locale names reorganization
Message-ID:  <20010611233423.A48057@nagual.pp.ru>
In-Reply-To: <20010611212016.K94133@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Mon, Jun 11, 2001 at 09:20:16PM %2B0200
References:  <20010610163853.A1166@nagual.pp.ru> <200106101537.f5AFavo33433@mail.uic-in.net> <200106102136.f5ALawu94200@uriah.heep.sax.de> <20010611020547.A1379@nagual.pp.ru> <20010611082525.F94133@uriah.heep.sax.de> <20010611160108.A34164@nagual.pp.ru> <20010611212016.K94133@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 11, 2001 at 21:20:16 +0200, Joerg Wunsch wrote:
> > locale in each program which tries to deal with it directly, since
> > suppose that program have the same default assumption (from where?)
> > for missing information.
> 
> Sorry, i can't follow you.  Which program is trying to guess local
> names, and how could i get a problem by providing a user-friendly
> alias name (i. e., a symlink)?  And, why do all the other Unices
> don't have a problem with it?

This is not locale data problem so can't be resolved via symlink. This is
locale name problem. With partial locale name given program can't sense
some info from missing parts of it, i.e. can't determine codeset and
territory in worst case.

All Unices have problem with it since it is standard relaxation provided
historycally. Recent standartization efforts attempts to compensate such
bad practice, f.e. nl_langinfo(CODESET) allows you to get codeset now, but
nothing yet allows you to get territory of shortest locale name. Old
programs are not aware about nl_langinfo(CODESET) and attempts to get all
info from env. variable value. In case there is short form, programs make
various assumptions which are different and often not right.

-- 
Andrey A. Chernov
http://ache.pp.ru/

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?20010611233423.A48057>