From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Date: Wed, 29 Jan 2020 16:38:40 -0800 Message-ID: <878slpsrqn.fsf@ericabrahamsen.net> References: <87blqmugec.fsf@ericabrahamsen.net> <87lfppyj1i.fsf@gnus.org> <87h80dsv7g.fsf@ericabrahamsen.net> <87d0b1yh9p.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41248"; 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: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 30 01:39:12 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 1iwxrU-000Afi-Nx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jan 2020 01:39:12 +0100 Original-Received: from localhost ([::1]:54192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwxrT-0004g5-DV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jan 2020 19:39:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57353) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwxrL-0004fy-Qc for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 19:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwxrK-0001ju-Lz for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 19:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwxrK-0001jU-Im for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 19:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwxrK-00076l-GT for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 19:39:02 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 39347-submit@debbugs.gnu.org id=B39347.158034473227309 (code B ref 39347); Thu, 30 Jan 2020 00:39:02 +0000 Original-Received: (at 39347) by debbugs.gnu.org; 30 Jan 2020 00:38:52 +0000 Original-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 Original-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 Original-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) In-Reply-To: <87d0b1yh9p.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 30 Jan 2020 00:28:18 +0100") 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:175420 Archived-At: 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