From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5576 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Locale bikeshed time Date: Wed, 23 Jul 2014 21:57:19 -0400 Message-ID: <20140724015719.GG11570@brightrain.aerifal.cx> References: <20140722184932.GA4914@brightrain.aerifal.cx> <20140722201008.GC16795@example.net> <20140722203540.GA11570@brightrain.aerifal.cx> <20140723095031.GE16795@example.net> <20140723163907.GC11570@brightrain.aerifal.cx> <53D043C9.8020102@midipix.org> <20140723233832.GF11570@brightrain.aerifal.cx> <53D05C4A.5070307@midipix.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 1406167064 8375 80.91.229.3 (24 Jul 2014 01:57:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2014 01:57:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5581-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 24 03:57:36 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 1XA8Hk-0006RN-Kc for gllmg-musl@plane.gmane.org; Thu, 24 Jul 2014 03:57:32 +0200 Original-Received: (qmail 5184 invoked by uid 550); 24 Jul 2014 01:57:32 -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 5176 invoked from network); 24 Jul 2014 01:57:31 -0000 Content-Disposition: inline In-Reply-To: <53D05C4A.5070307@midipix.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5576 Archived-At: On Wed, Jul 23, 2014 at 09:07:22PM -0400, writeonce@midipix.org wrote: > In terms of practicality: for many of the calendars I mentioned, > conversion involves not only a formula, but also date- and > year-based considerations. A correct implementation of all the %E? > specifiers is accordingly going to include many bytes of code that > probably shouldn't be pulled in whenever a "random" static > application uses strftime. That being said, if musl's Obviously unless the set of such rules is fixed and free of the need for external updates, it would need to be represented as *data* that's loaded as part of the locale file and not as code. Or as a query to a (local) service. > implementation of %E? could use weak aliases and standardized hooks, > then applications or calendar-specific libraries could provide these > hooks and still use the libc strftime, rather than a complex system > of wrappers and conditionals. That's now how weak symbols work -- they're not a way to add plug-in code. Rich