diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-05 21:23:15 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-05 21:24:09 -0700 |
commit | 9d829b8be5b86668d5165b9d0c0cdc392b558dd3 (patch) | |
tree | b2dc5d94b96bf540fdfde80a33f93bf4b4018e66 /src/termchar.h | |
parent | aadf72167673c8702531ba3802e3d5f137f139ba (diff) | |
download | emacs-9d829b8be5b86668d5165b9d0c0cdc392b558dd3.tar.gz |
Fix off-by-one bug in ISO 8601 BC years
* lisp/calendar/iso8601.el (iso8601--year-match)
(iso8601--full-date-match, iso8601--without-day-match)
(iso8601--week-date-match, iso8601--ordinal-date-match)
(iso8601-parse-date):
Don’t bother to separate the year’s sign from the year,
as that distinction is not needed: ISO 8601 uses
astronomical year numbering with a year zero, which
is what the Emacs time functions use, so there’s no
need to treat nonpositive years specially.
(iso8601--adjust-year): Remove; no longer needed
since callers can just use string-to-number.
* test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years):
Adjust test case to match fixed behavior.
Diffstat (limited to 'src/termchar.h')
0 files changed, 0 insertions, 0 deletions