question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GNU extensions used in call to strftime break non-glibc systems

See original GitHub issue

This 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?

https://github.com/capless/warrant/blob/3d6aa8c84841a1c7183f702ed7b4ad993c1ff37a/warrant/aws_srp.py#L170

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
armicroncommented, Sep 26, 2017

I will check it on Oct 1, but I think it will not work.

0reactions
balloobcommented, Nov 29, 2017

I introduced #75 which extracts the method to format the current time so that it is easily monkey patchable.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found