From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5565 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Locale bikeshed time Date: Tue, 22 Jul 2014 16:36:48 -0400 Message-ID: <20140722203648.GB11570@brightrain.aerifal.cx> References: <20140722184932.GA4914@brightrain.aerifal.cx> <53CEC6EE.9030404@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1406061428 16968 80.91.229.3 (22 Jul 2014 20:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2014 20:37:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5570-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jul 22 22:37:01 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 1X9go1-0003In-07 for gllmg-musl@plane.gmane.org; Tue, 22 Jul 2014 22:37:01 +0200 Original-Received: (qmail 15647 invoked by uid 550); 22 Jul 2014 20:37:00 -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 15639 invoked from network); 22 Jul 2014 20:37:00 -0000 Content-Disposition: inline In-Reply-To: <53CEC6EE.9030404@skarnet.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5565 Archived-At: On Tue, Jul 22, 2014 at 09:17:50PM +0100, Laurent Bercot wrote: > > >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. Do you have in mind a usage case this would be beneficial for? Rich