From owner-freebsd-current Mon Jun 11 12:34:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 28BE437B403 for ; Mon, 11 Jun 2001 12:34:37 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f5BJYQl48186; Mon, 11 Jun 2001 23:34:26 +0400 (MSD) (envelope-from ache) Date: Mon, 11 Jun 2001 23:34:25 +0400 From: "Andrey A. Chernov" To: Joerg Wunsch Cc: freebsd-current@FreeBSD.ORG Subject: Re: HEADS UP: locale names reorganization Message-ID: <20010611233423.A48057@nagual.pp.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010611212016.K94133@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Mon, Jun 11, 2001 at 09:20:16PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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