[Toybox] [PATCH] Fix year parsing in date(1).
enh
enh at google.com
Tue Nov 10 18:25:54 PST 2015
Four-digit years were being mangled by the code for two-digit years.
Move all the two-digit year code into the "we only saw two digits" case.
Add some new tests and fix existing tests.
---
tests/date.test | 8 ++++++--
toys/posix/date.c | 10 ++++++----
2 files changed, 12 insertions(+), 6 deletions(-)
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-year-parsing-in-date-1.patch
Type: text/x-patch
Size: 3106 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20151110/4f566ecb/attachment-0004.bin>
More information about the Toybox
mailing list