Skip to content

Commit

Permalink
musl is dumb
Browse files Browse the repository at this point in the history
strftime sets errno to 22 for some reason in some cases
it turns out this is fine with the standard
but it's still stupid as fuck and i'm not gonna work around it
  • Loading branch information
izabera committed Jul 11, 2016
1 parent 728856e commit 1db3ba9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/date.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ int main(int argc, char *argv[]) {
if (argc > 1 && argv[1][0] == '+') {
outformat = &argv[1][1];
dodate:
errno = 0;
strftime(outbuf, sizeof(outbuf), outformat, tm);
printf("format was: <%s> errno %d: %s\n", outformat, errno, strerror(errno));
}
else {
parsedate(argv[1]);
Expand Down

0 comments on commit 1db3ba9

Please sign in to comment.