From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 39347@debbugs.gnu.org
Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values?
Date: Wed, 29 Jan 2020 16:38:40 -0800 [thread overview]
Message-ID: <878slpsrqn.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87d0b1yh9p.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 00:28:18 +0100")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> I sure hope so! Anyway, looks like the library is correct, and I just
>> get to decide if I want to support deprecated forms that might be sent
>> by someone's random outdated carddav server. Bleagh.
>
> I think we could extend the library to handle those forms -- if they
> aren't ambiguous. (I seem to vaguely remember that there were some
> forms that were ambiguous when shortened, but I don't remember the
> details.)
>
> Do you have a pointer to the 2000 version of the ISO8601 standard? I
> could have a peek.
These are surprisingly hard to find:
https://www.pvv.ntnu.no/~nsaa/8601v2000.pdf
Section 5.2.1.3 does the truncation stuff, including the three hyphens.
Looking up information about 8601, the only references to this
"truncated representation" are from the vCard spec. That is stupid, but
also leads me to believe that they're still considered legal for vCards,
so it would be nice if they were supported. Maybe with defvar we could
let-bind, to say "allow these variants"? Some of the
potentially ambiguous stuff does seem to rely on agreement between
producer and consumer.
vCard also mentions "reduced accuracy" and "expanded representation",
from the 2004 version of 8601 -- is that something that the library
currently handles? I assume it does since I haven't been able to raise
any other errors.
Thanks for looking in to this,
Eric
next prev parent reply other threads:[~2020-01-30 0:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-29 21:00 bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Eric Abrahamsen
2020-01-29 22:50 ` Lars Ingebrigtsen
2020-01-29 23:23 ` Eric Abrahamsen
2020-01-29 23:28 ` Lars Ingebrigtsen
2020-01-30 0:38 ` Eric Abrahamsen [this message]
2020-01-30 1:03 ` Lars Ingebrigtsen
2020-01-30 1:11 ` Lars Ingebrigtsen
2020-01-30 1:14 ` Eric Abrahamsen
2020-01-30 1:15 ` Lars Ingebrigtsen
2020-01-30 2:05 ` Lars Ingebrigtsen
2020-01-30 3:32 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878slpsrqn.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=39347@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.