From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9772 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: glibc strftime extensions Date: Tue, 29 Mar 2016 17:11:48 +0300 (MSK) Message-ID: References: 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 1459260744 26939 80.91.229.3 (29 Mar 2016 14:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 14:12:24 +0000 (UTC) Cc: musl@lists.openwall.com To: Evan Shaw Original-X-From: musl-return-9785-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 29 16:12:09 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1akuNM-0006H2-1j for gllmg-musl@m.gmane.org; Tue, 29 Mar 2016 16:12:08 +0200 Original-Received: (qmail 15606 invoked by uid 550); 29 Mar 2016 14:12:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15586 invoked from network); 29 Mar 2016 14:12:03 -0000 In-Reply-To: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:9772 Archived-At: On Tue, 29 Mar 2016, Evan Shaw wrote: > glibc extends strftime as documented in [1]. Might musl implement some > or all of these at some point, or have they been deliberately omitted? > > OS X also partially implements the same extensions[2], and the glibc > docs mention that "a few other systems provide similar features" but > doesn't get specific. I haven't taken the time to look at other libc > implementations yet. In such cases it's usually useful to check what BSD libc implementations do; for example, FreeBSD documents provision of '-', '_', '0' flags: https://www.freebsd.org/cgi/man.cgi?query=strftime Thus I think providing -_0 in musl makes sense to consider, given significant precedent and low implementation cost. Alexander