From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39347@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158033165731721 (code B ref -1); Wed, 29 Jan 2020 21:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 21:00:57 +0000 Received: from localhost ([127.0.0.1]:34631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuSH-0008FZ-GZ for submit@debbugs.gnu.org; Wed, 29 Jan 2020 16:00:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:53319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuSG-0008FS-Cd for submit@debbugs.gnu.org; Wed, 29 Jan 2020 16:00:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwuSF-0000HN-9O for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwuSE-0003GC-76 for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:55 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:41176 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwuSE-00038b-3q for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:54 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 95346FA00F for ; Wed, 29 Jan 2020 21:00:45 +0000 (UTC) From: Eric Abrahamsen Date: Wed, 29 Jan 2020 13:00:43 -0800 Message-ID: <87blqmugec.fsf@ericabrahamsen.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 52.70.2.18 X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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 From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 22:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eric Abrahamsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.15803382149450 (code B ref 39347); Wed, 29 Jan 2020 22:51:02 +0000 Received: (at 39347) by debbugs.gnu.org; 29 Jan 2020 22:50:14 +0000 Received: from localhost ([127.0.0.1]:34679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwwA1-0002SM-No for submit@debbugs.gnu.org; Wed, 29 Jan 2020 17:50:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iww9z-0002S2-Gt for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 17:50:12 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iww9q-0003En-3a; Wed, 29 Jan 2020 23:50:04 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> Date: Wed, 29 Jan 2020 23:50:01 +0100 In-Reply-To: <87blqmugec.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Jan 2020 13:00:43 -0800") Message-ID: <87lfppyj1i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: > 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. > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: loc.gov] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen writes: > 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) I'm unable to find that form in http://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf The RFC talks about the ISO8601 standard from 2000 -- perhaps those forms have been deprecated? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 23:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034023712618 (code B ref 39347); Wed, 29 Jan 2020 23:24:01 +0000 Received: (at 39347) by debbugs.gnu.org; 29 Jan 2020 23:23:57 +0000 Received: from localhost ([127.0.0.1]:34700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwwgf-0003HS-Jx for submit@debbugs.gnu.org; Wed, 29 Jan 2020 18:23:57 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:37088 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwwgd-0003HA-7I for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 18:23:55 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id C8368FA0F2; Wed, 29 Jan 2020 23:23:48 +0000 (UTC) From: Eric Abrahamsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> Date: Wed, 29 Jan 2020 15:23:47 -0800 In-Reply-To: <87lfppyj1i.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 29 Jan 2020 23:50:01 +0100") Message-ID: <87h80dsv7g.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> 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) > > I'm unable to find that form in > > http://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf > > The RFC talks about the ISO8601 standard from 2000 -- perhaps those > forms have been deprecated? 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 want this package to support older Emacs than 27 -- I wonder if anyone would yell at me if stuck a copy of iso8601.el in the package, and only load it if the built-in one can't be found. Eric From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eric Abrahamsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034050813054 (code B ref 39347); Wed, 29 Jan 2020 23:29:01 +0000 Received: (at 39347) by debbugs.gnu.org; 29 Jan 2020 23:28:28 +0000 Received: from localhost ([127.0.0.1]:34704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwwl2-0003OU-6z for submit@debbugs.gnu.org; Wed, 29 Jan 2020 18:28:28 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwwl1-0003OG-H5 for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 18:28:27 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwwks-0003fc-SF; Thu, 30 Jan 2020 00:28:21 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> Date: Thu, 30 Jan 2020 00:28:18 +0100 In-Reply-To: <87h80dsv7g.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Jan 2020 15:23:47 -0800") Message-ID: <87d0b1yh9p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ericabrahamsen.net] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 00:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034473227309 (code B ref 39347); Thu, 30 Jan 2020 00:39:02 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 00:38:52 +0000 Received: from localhost ([127.0.0.1]:34762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwxr9-00076P-Sf for submit@debbugs.gnu.org; Wed, 29 Jan 2020 19:38:52 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:38436 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwxr7-00076A-0b for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 19:38:50 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 152ABFA0F2; Thu, 30 Jan 2020 00:38:41 +0000 (UTC) From: Eric Abrahamsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> Date: Wed, 29 Jan 2020 16:38:40 -0800 In-Reply-To: <87d0b1yh9p.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 00:28:18 +0100") Message-ID: <878slpsrqn.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Eric Abrahamsen 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 From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 01:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eric Abrahamsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034621729658 (code B ref 39347); Thu, 30 Jan 2020 01:04:02 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 01:03:37 +0000 Received: from localhost ([127.0.0.1]:34778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyF6-0007iI-Tv for submit@debbugs.gnu.org; Wed, 29 Jan 2020 20:03:37 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyF4-0007i4-BE for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 20:03:35 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwyEv-0004hd-AZ; Thu, 30 Jan 2020 02:03:27 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> Date: Thu, 30 Jan 2020 02:03:24 +0100 In-Reply-To: <878slpsrqn.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Jan 2020 16:38:40 -0800") Message-ID: <87zhe5wyar.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eric Abrahamsen writes: >> 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 Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ericabrahamsen.net] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eric Abrahamsen writes: >> 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 Yeah, many ISO standards cost money, so you can only find them if somebody has happened to have left a copy somewhere on the web "by accident". :-/ > 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. Nah. Looking at 5.2.1.3 in the 2000 version of the standard, it looks like what we're missing is just the e) and f) forms, and it looks like they're not ambiguous, so I think I'll just go ahead and add them to the iso8601 library. I'm not sure about the a-c) variants -- the ones with implied century... are they ambiguous? Hm... perhaps not... > 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. The library doesn't handle "expanded representation", but it should handle all the "reduced accuracy" forms. At least in the 2016 version of the standard. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 01:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eric Abrahamsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034670330451 (code B ref 39347); Thu, 30 Jan 2020 01:12:01 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 01:11:43 +0000 Received: from localhost ([127.0.0.1]:34786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyMw-0007v5-Qv for submit@debbugs.gnu.org; Wed, 29 Jan 2020 20:11:43 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyMv-0007us-RG for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 20:11:42 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwyMn-0004oj-IZ; Thu, 30 Jan 2020 02:11:36 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> <87zhe5wyar.fsf@gnus.org> Date: Thu, 30 Jan 2020 02:11:32 +0100 In-Reply-To: <87zhe5wyar.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 02:03:24 +0100") Message-ID: <87v9otwxx7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Nah. Looking at 5.2.1.3 in the 2000 version of the standard, it looks > like what we're missing is just the e) and f) forms, and it looks like > they're not ambiguous, so I think I'll just go ahead [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Nah. Looking at 5.2.1.3 in the 2000 version of the standard, it looks > like what we're missing is just the e) and f) forms, and it looks like > they're not ambiguous, so I think I'll just go ahead and add them to the > iso8601 library. I've now done so on the trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 01:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034688430772 (code B ref 39347); Thu, 30 Jan 2020 01:15:02 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 01:14:44 +0000 Received: from localhost ([127.0.0.1]:34790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyPs-00080G-9p for submit@debbugs.gnu.org; Wed, 29 Jan 2020 20:14:44 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:39110 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyPq-000800-OG for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 20:14:43 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id C61C1FA0F2; Thu, 30 Jan 2020 01:14:36 +0000 (UTC) From: Eric Abrahamsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> <87zhe5wyar.fsf@gnus.org> Date: Wed, 29 Jan 2020 17:14:35 -0800 In-Reply-To: <87zhe5wyar.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 02:03:24 +0100") Message-ID: <87zhe5rbic.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 01/30/20 02:03 AM, Lars Ingebrigtsen wrote: > Eric Abrahamsen writes: > >>> 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 > > Yeah, many ISO standards cost money, so you can only find them if > somebody has happened to have left a copy somewhere on the web "by > accident". :-/ > >> 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. > > Nah. Looking at 5.2.1.3 in the 2000 version of the standard, it looks > like what we're missing is just the e) and f) forms, and it looks like > they're not ambiguous, so I think I'll just go ahead and add them to the > iso8601 library. Cool! > I'm not sure about the a-c) variants -- the ones with implied > century... are they ambiguous? Hm... perhaps not... I'm not worried about it for this case, at least, as vCard disallows a through c. >> 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. > > The library doesn't handle "expanded representation", but it should > handle all the "reduced accuracy" forms. At least in the 2016 version > of the standard. Good enough for me. I will steal the library once you've made these updates. Thanks again, Eric From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 01:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034695130921 (code B ref 39347); Thu, 30 Jan 2020 01:16:01 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 01:15:51 +0000 Received: from localhost ([127.0.0.1]:34794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyQx-00082f-Ll for submit@debbugs.gnu.org; Wed, 29 Jan 2020 20:15:51 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwyQw-00082O-6r for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 20:15:50 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwyQo-0004ql-Aa for 39347@debbugs.gnu.org; Thu, 30 Jan 2020 02:15:44 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> Date: Thu, 30 Jan 2020 02:15:41 +0100 In-Reply-To: <878slpsrqn.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Jan 2020 16:38:40 -0800") Message-ID: <87r1zhwxqa.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hm... I didn't add support for "---12T14" (that is, 14:00 on the twelfth)... I didn't peruse the 2000 version of the standard sufficiently to see whether that was supposed to be valid or not. My guess [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hm... I didn't add support for "---12T14" (that is, 14:00 on the twelfth)... I didn't peruse the 2000 version of the standard sufficiently to see whether that was supposed to be valid or not. My guess is that it was. :-/ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 02:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.15803499273346 (code B ref 39347); Thu, 30 Jan 2020 02:06:02 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 02:05:27 +0000 Received: from localhost ([127.0.0.1]:34820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwzCx-0000ru-8e for submit@debbugs.gnu.org; Wed, 29 Jan 2020 21:05:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwzCv-0000rg-SW for 39347@debbugs.gnu.org; Wed, 29 Jan 2020 21:05:26 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwzCn-0005US-CE for 39347@debbugs.gnu.org; Thu, 30 Jan 2020 03:05:19 +0100 From: Lars Ingebrigtsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> <87r1zhwxqa.fsf@gnus.org> Date: Thu, 30 Jan 2020 03:05:16 +0100 In-Reply-To: <87r1zhwxqa.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 02:15:41 +0100") Message-ID: <87mua5wvfn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Hm... I didn't add support for "---12T14" (that is, 14:00 on the > twelfth)... I didn't peruse the 2000 version of the standard > sufficiently to see whether that was supposed to be valid or not. My [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Hm... I didn't add support for "---12T14" (that is, 14:00 on the > twelfth)... I didn't peruse the 2000 version of the standard > sufficiently to see whether that was supposed to be valid or not. My > guess is that it was. :-/ OK, I couldn't live with that, so I've now made this work: (iso8601-parse "---12T14") => (0 0 14 12 nil nil nil -1 nil) This'll be useful for exactly nobody. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 21 05:15:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jan 2020 03:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 39347-done@debbugs.gnu.org, 39347@debbugs.gnu.org Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158035514011399 (code B ref 39347); Thu, 30 Jan 2020 03:33:02 +0000 Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 03:32:20 +0000 Received: from localhost ([127.0.0.1]:34840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ix0Z2-0002xi-8a for submit@debbugs.gnu.org; Wed, 29 Jan 2020 22:32:20 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:41524 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ix0Z0-0002xO-DO; Wed, 29 Jan 2020 22:32:18 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B1198FA08D; Thu, 30 Jan 2020 03:32:11 +0000 (UTC) From: Eric Abrahamsen References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> <87r1zhwxqa.fsf@gnus.org> <87mua5wvfn.fsf@gnus.org> Date: Wed, 29 Jan 2020 19:32:10 -0800 In-Reply-To: <87mua5wvfn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 03:05:16 +0100") Message-ID: <87sgjxr551.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> Hm... I didn't add support for "---12T14" (that is, 14:00 on the >> twelfth)... I didn't peruse the 2000 version of the standard >> sufficiently to see whether that was supposed to be valid or not. My >> guess is that it was. :-/ > > OK, I couldn't live with that, so I've now made this work: > > (iso8601-parse "---12T14") > => (0 0 14 12 nil nil nil -1 nil) > > This'll be useful for exactly nobody. :-) I already count as one! Closing the bug report now -- thanks. From unknown Sat Jun 21 05:15:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eric Abrahamsen Subject: bug#39347: closed (Re: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values?) Message-ID: References: <87sgjxr551.fsf@ericabrahamsen.net> <87blqmugec.fsf@ericabrahamsen.net> X-Gnu-PR-Message: they-closed 39347 X-Gnu-PR-Package: emacs Reply-To: 39347@debbugs.gnu.org Date: Thu, 30 Jan 2020 03:33:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1580355182-11464-1" This is a multi-part message in MIME format... ------------=_1580355182-11464-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39347: 28.0.50; iso8601-parse can't handle all legal date values? which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 39347@debbugs.gnu.org. --=20 39347: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39347 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1580355182-11464-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39347-done) by debbugs.gnu.org; 30 Jan 2020 03:32:20 +0000 Received: from localhost ([127.0.0.1]:34838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ix0Z2-0002xg-2J for submit@debbugs.gnu.org; Wed, 29 Jan 2020 22:32:20 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:41524 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ix0Z0-0002xO-DO; Wed, 29 Jan 2020 22:32:18 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B1198FA08D; Thu, 30 Jan 2020 03:32:11 +0000 (UTC) From: Eric Abrahamsen To: Lars Ingebrigtsen Subject: Re: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> <87r1zhwxqa.fsf@gnus.org> <87mua5wvfn.fsf@gnus.org> Date: Wed, 29 Jan 2020 19:32:10 -0800 In-Reply-To: <87mua5wvfn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 03:05:16 +0100") Message-ID: <87sgjxr551.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39347-done Cc: 39347-done@debbugs.gnu.org, 39347@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> Hm... I didn't add support for "---12T14" (that is, 14:00 on the >> twelfth)... I didn't peruse the 2000 version of the standard >> sufficiently to see whether that was supposed to be valid or not. My >> guess is that it was. :-/ > > OK, I couldn't live with that, so I've now made this work: > > (iso8601-parse "---12T14") > => (0 0 14 12 nil nil nil -1 nil) > > This'll be useful for exactly nobody. :-) I already count as one! Closing the bug report now -- thanks. ------------=_1580355182-11464-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 21:00:57 +0000 Received: from localhost ([127.0.0.1]:34631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuSH-0008FZ-GZ for submit@debbugs.gnu.org; Wed, 29 Jan 2020 16:00:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:53319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwuSG-0008FS-Cd for submit@debbugs.gnu.org; Wed, 29 Jan 2020 16:00:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwuSF-0000HN-9O for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwuSE-0003GC-76 for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:55 -0500 Received: from ericabrahamsen.net ([52.70.2.18]:41176 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwuSE-00038b-3q for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 16:00:54 -0500 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 95346FA00F for ; Wed, 29 Jan 2020 21:00:45 +0000 (UTC) From: Eric Abrahamsen To: bug-gnu-emacs@gnu.org Subject: 28.0.50; iso8601-parse can't handle all legal date values? Date: Wed, 29 Jan 2020 13:00:43 -0800 Message-ID: <87blqmugec.fsf@ericabrahamsen.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 52.70.2.18 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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 ------------=_1580355182-11464-1--