strptime: allow blank-padding for %k and %l. Both are extensions and documented as being blank-padded in strftime(3).
Details
Details
- Reviewers
ngie - Commits
- rS340106: strptime: make %k and %l specifiers match their description in
Test cases added to lib/libc/tests/time.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/libc/stdtime/strptime.c | ||
---|---|---|
285 ↗ | (On Diff #49792) | I must admit that this is somewhat unusual way to write the cast. *(unsigned char *)buf is more typical. |
lib/libc/stdtime/strptime.c | ||
---|---|---|
285 ↗ | (On Diff #49792) | Should I fix it or leave it as it seems to follow other casts in this file? |
lib/libc/stdtime/strptime.c | ||
---|---|---|
285 ↗ | (On Diff #49792) | It was a note, not the change request. It is indeed looks unusual. |