mailing list of musl libc
 help / color / mirror / code / Atom feed
* glibc strftime extensions
@ 2016-03-29  2:29 Evan Shaw
  2016-03-29 14:11 ` Alexander Monakov
  0 siblings, 1 reply; 2+ messages in thread
From: Evan Shaw @ 2016-03-29  2:29 UTC (permalink / raw)
  To: musl

Hi,

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.

(Please CC me in any replies as I am not subscribed to this list.)

- Evan

[1] http://man7.org/linux/man-pages/man3/strftime.3.html#NOTES
[2] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strftime.3.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: glibc strftime extensions
  2016-03-29  2:29 glibc strftime extensions Evan Shaw
@ 2016-03-29 14:11 ` Alexander Monakov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Monakov @ 2016-03-29 14:11 UTC (permalink / raw)
  To: Evan Shaw; +Cc: musl

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-29 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29  2:29 glibc strftime extensions Evan Shaw
2016-03-29 14:11 ` Alexander Monakov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).