From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5563 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: Re: Locale bikeshed time Date: Tue, 22 Jul 2014 21:17:50 +0100 Message-ID: <53CEC6EE.9030404@skarnet.org> References: <20140722184932.GA4914@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406060291 2042 80.91.229.3 (22 Jul 2014 20:18:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2014 20:18:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5568-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 22 22:18:04 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1X9gVf-0004NO-5l for gllmg-musl@plane.gmane.org; Tue, 22 Jul 2014 22:18:03 +0200 Original-Received: (qmail 32164 invoked by uid 550); 22 Jul 2014 20:18:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32156 invoked from network); 22 Jul 2014 20:18:02 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=erpMSyi1jyGJPust+gAOi3t72GKQCUFFTH/22pUpRM0=; b=JxYXOzvgUX/GRvIDBzVP7UEFzPO/obDakGDoh7YsE6KKuX3onc26X/KvKley4Xk6i4 8LhJ1hvTq9roVIESa7Wt2TYObdUdXjVJAD1chb9pkqqnjlC3VhtaDqoagapnuvbQtkjh n/uRp8thCx0nfjKYFn5QqJrka3r5PwWmqA85FdrhBsAJxOlb+/qqfZ2hJmZ248ckxHLq qD2RCcZgtvoT/ViXT7Kk1vighYt1FcxNR+Jx1mvVjQ24egdYIqV7YtgruePwv6HB19DE snJP8kjVPMvi41BDz1FQsY1r6S4ySZnsgPwZI56QdpNUC5H3pg5/ouDBgvrSSvX+ntVi LKYA== X-Received: by 10.112.145.233 with SMTP id sx9mr2949249lbb.2.1406060271211; Tue, 22 Jul 2014 13:17:51 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <20140722184932.GA4914@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5563 Archived-At: > So, the first bikeshed decision to be made is what environment > variable to use for the locale path, and what fallback should be if > it's not set. Glibc uses $LOCPATH. On the one hand it would be nice to > use the same var (since apps are already aware of the need to treat it > specially), but on the other it's undesirable to have them tied > together (e.g. if you're using musl as a non-root installation and > can't write to /usr/lib) and to avoid clashing with glibc's files we > would need to choose a subdirectory under $LOCPATH rather than using > it directly. All of these aspects make it a lot less attractive. Well, my suggestion is going to be ugly, but it's the most flexible one: have two variables. LOCPATH for compatibility, and something like MUSL_LOCPATH for admins who fear conflicts. Try $MUSL_LOCPATH first, then fallback to $LOCPATH if MUSL_LOCPATH is not set, then fallback to a hard-coded directory. I'm not experienced enough with locales (nor have enough interest in them) to talk about the other points. -- Laurent