From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Date: Thu, 30 Jan 2020 02:03:24 +0100 Message-ID: <87zhe5wyar.fsf@gnus.org> References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> <878slpsrqn.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48614"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39347@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 30 02:04:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwyFg-000CZz-II for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jan 2020 02:04:12 +0100 Original-Received: from localhost ([::1]:54460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwyFf-0007PP-5u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jan 2020 20:04:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35838) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwyFY-0007PJ-0h for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 20:04:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwyFW-0003rd-NB for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 20:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwyFW-0003rN-JV for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 20:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwyFW-0007j3-Fn for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 20:04:02 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034621729658 (code B ref 39347); Thu, 30 Jan 2020 01:04:02 +0000 Original-Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 01:03:37 +0000 Original-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 Original-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 Original-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 In-Reply-To: <878slpsrqn.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 29 Jan 2020 16:38:40 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175421 Archived-At: 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