From owner-freebsd-current Mon Jun 11 12:52:43 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 37F7B37B410 for ; Mon, 11 Jun 2001 12:52:29 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f5BJqOf48500; Mon, 11 Jun 2001 23:52:24 +0400 (MSD) (envelope-from ache) Date: Mon, 11 Jun 2001 23:52:23 +0400 From: "Andrey A. Chernov" To: Joerg Wunsch Cc: freebsd-current@FreeBSD.ORG Subject: Re: HEADS UP: locale names reorganization Message-ID: <20010611235223.A48405@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> <20010611233423.A48057@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010611233423.A48057@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Jun 11, 2001 at 11:34:25PM +0400 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 23:34:25 +0400, Andrey A. Chernov wrote: > 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. I.e. theoretically right now we can reduce locale names to two components (language and territory) since we have in -current (but not in -stable) nl_langinfo(CODESET), but not to one component (language) since there is no standard function to get territory. But then we need to rewrite all old programs which parse LANG directly to use nl_langinfo(CODESET). -- 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