GNU extensions used in call to strftime break non-glibc systems
See original GitHub issueThis line contains a GNU extension in the format string passed to strftime
(specifically the %-d
part). This causes the timestamp
variable to be an empty string on non-glibc systems (like the Alpine Linux Docker images, which use musl libc).
Removing the hyphen modifier from %-d
should be painless on glibc and non-glibc systems alike. Stripping leading zeros does not appear to be required by RFC2616 or RFC822 (which seems to be the format used here). Could this possibly be removed for good?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
GNU Gnulib
Gnulib is different: It is used as a source code library. ... The type sighandler_t (a GNU extension) is not defined on most...
Read more >Diff - ndk-r11^! - toolchain/sed - Git at Google
It will automatically detect whether the system already +provides the GNU `gettext' functions. If not, the included GNU +`gettext' library will be used....
Read more >GNU Core Utilities: ChangeLog - Fossies
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers.
Read more >glibc - Wikipedia
The GNU C Library, commonly known as glibc, is the GNU Project's implementation of the C standard library. Despite its name, it now...
Read more >a07e17251da6060d17b23c920e...
2017-08-08 Paul Eggert <eggert@cs.ucla.edu> extensions: add ... Use a different implementation of rwlocks altogether on non-glibc systems without ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will check it on Oct 1, but I think it will not work.
I introduced #75 which extracts the method to format the current time so that it is easily monkey patchable.