From unknown Fri Jun 20 07:10:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39347 <39347@debbugs.gnu.org> To: bug#39347 <39347@debbugs.gnu.org> Subject: Status: 28.0.50; iso8601-parse can't handle all legal date values? Reply-To: bug#39347 <39347@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:10:24 +0000 retitle 39347 28.0.50; iso8601-parse can't handle all legal date values? reassign 39347 emacs submitter 39347 Eric Abrahamsen severity 39347 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 16:00:57 2020 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 17:50:14 2020 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 To: Eric Abrahamsen Subject: Re: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? 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-Debbugs-Envelope-To: 39347 Cc: 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: -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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 18:23:57 2020 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 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> 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-Debbugs-Envelope-To: 39347 Cc: 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: > 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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 18:28:28 2020 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 To: Eric Abrahamsen 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> 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-Debbugs-Envelope-To: 39347 Cc: 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: -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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 19:38:52 2020 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 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> 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-Debbugs-Envelope-To: 39347 Cc: 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: > 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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 20:03:37 2020 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 To: Eric Abrahamsen 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> 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-Debbugs-Envelope-To: 39347 Cc: 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: -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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 20:11:43 2020 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 To: Eric Abrahamsen 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> <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-Debbugs-Envelope-To: 39347 Cc: 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: -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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 20:14:44 2020 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 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> <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-Debbugs-Envelope-To: 39347 Cc: 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 (---) 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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 20:15:51 2020 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 To: 39347@debbugs.gnu.org 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> 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-Debbugs-Envelope-To: 39347 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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 21:05:27 2020 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 To: 39347@debbugs.gnu.org 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> 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-Debbugs-Envelope-To: 39347 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 debbugs-submit-bounces@debbugs.gnu.org Wed Jan 29 22:32:20 2020 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 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 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. From unknown Fri Jun 20 07:10:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Feb 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator