unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39347: 28.0.50; iso8601-parse can't handle all legal date values?
@ 2020-01-29 21:00 Eric Abrahamsen
  2020-01-29 22:50 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2020-01-29 21:00 UTC (permalink / raw)
  To: 39347


Hi!

I'm writing a small library for parsing vcards, and would like to use
the new iso8601 library, when available, for parsing date properties.

I'm testing out `iso9601-parse' with the example values from the vcard
RFC, and am getting errors from the example date value "---12", from
https://tools.ietf.org/html/rfc6350#section-4.3.1.

My understanding is that "---12" as a date should parse to:

(nil nil nil 12 nil nil nil -1 nil)

Ie, "the twelfth" (though the twelfth of what, we don't know). "----12"
also raises an error. The value "--0412" parses correctly to "April
twelfth".

Is this a bug that can be fixed, or a date value that isn't supported?

Thanks,
Eric





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-01-30  3:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).