From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#29116: 24.5; Parsing dates from VCAL Date: Sun, 05 Nov 2017 11:19:08 +0100 Message-ID: <87mv41vxib.fsf@gmail.com> References: <1smv459hy3.fsf@voll.uninett.no> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509877220 19834 195.159.176.226 (5 Nov 2017 10:20:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 10:20:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29116@debbugs.gnu.org To: Vegard Vesterheim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 05 11:20:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBI2E-0004VP-Db for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 11:20:10 +0100 Original-Received: from localhost ([::1]:43669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBI2L-0000ed-SY for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Nov 2017 05:20:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBI2A-0000e3-JX for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBI26-0004iI-L9 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:20:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBI26-0004iE-H4 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBI26-0002ka-6m for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2017 05:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2017 10:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29116-submit@debbugs.gnu.org id=B29116.150987716010515 (code B ref 29116); Sun, 05 Nov 2017 10:20:02 +0000 Original-Received: (at 29116) by debbugs.gnu.org; 5 Nov 2017 10:19:20 +0000 Original-Received: from localhost ([127.0.0.1]:51216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBI1P-0002jV-MJ for submit@debbugs.gnu.org; Sun, 05 Nov 2017 05:19:19 -0500 Original-Received: from mail-wr0-f177.google.com ([209.85.128.177]:43249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBI1N-0002jJ-Sm for 29116@debbugs.gnu.org; Sun, 05 Nov 2017 05:19:18 -0500 Original-Received: by mail-wr0-f177.google.com with SMTP id 4so1764784wrt.0 for <29116@debbugs.gnu.org>; Sun, 05 Nov 2017 02:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:user-agent:mime-version; bh=vQpgKCsHf//F+DzEPejncAT71I/V4UmBSnMtZXUf+Fg=; b=XbifqJBTtrHzz8Cwza2fGrrBb9Geu/m7XYDes4mgykwXromhxMHdhYuOsOUgSDdGx3 QeSLon/84AyWH4Hm+bL9Pd7yYtn1mVCE2mTjPpIEqwMhMTPw75gbyXHiV01nhr9xOl9G CKocQF51QRdnAd76AZxv0VHRW98YiMeVxmgv5Nj+cqGNFLvXYCb3AQtpsHBssvnHNxks 3CmvLwuhn0QXKpRnjiHqcTGkpFOTRe5+j2ofp+tw8ieeynguj9iIx0cMOtXpwVZEoish JxhKc5pbTN9skECQAPi+ehFmQ+FdrjATOGYoGgE0pEyMJl4rUPhQ/Upse3n0lpHVX3QS l1Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version; bh=vQpgKCsHf//F+DzEPejncAT71I/V4UmBSnMtZXUf+Fg=; b=G+YhF/BgB2Kdp4ilRPLebl8IkBWtCtD0l82AoguE7Q49hMGMbYsTJb8xpbTb5F8GGh DxjtYKT1dKkg4MjOJxDF7wvWICaiMBJaV1Sh9bmBhQ6pU0fII3Rd+sfmEqXVyZpAGJJP iFiGeJsyBShb+sDHJ+WIFI9xxw7nBUrsQdlvKy0WC+ubt5hco1+UjmvzJe1Lf6J6HBdC 8YSy/nCCuGEEQoCCDPRT9ARhqMy2uTAZVi+B7VJhNMx+fRqqu2d+ofOZSu9qfdYAZvnv psCL3vYRiU07DBccKYcxMweHVV/Ze3WOeql3DPws1d76PqZrmmFqVembmpBj8GzrD07a 0tNA== X-Gm-Message-State: AMCzsaWVwwUXBxUZU9kI133C3v8U/9Z8lkPk4+0BpulgWIqwprvkeV8L cvmjkiHzVByxdDGLT6GMG3bI+41v X-Google-Smtp-Source: ABhQp+SZFgPC0I49Of71r+R/oe0UkedMbS4BPMAZT8Bcs/1uPENulDc36IioYzl3j26Mrl/WLRxvjQ== X-Received: by 10.223.183.13 with SMTP id l13mr10742792wre.1.1509877151587; Sun, 05 Nov 2017 02:19:11 -0800 (PST) Original-Received: from rpluim-ubuntu ([2a01:e34:ecfc:a090:7953:2f3f:a304:7ee1]) by smtp.gmail.com with ESMTPSA id s12sm350085wrc.89.2017.11.05.02.19.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Nov 2017 02:19:10 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <1smv459hy3.fsf@voll.uninett.no> (Vegard Vesterheim's message of "Thu, 02 Nov 2017 09:57:08 +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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144028 Vegard Vesterheim writes: > I received an email containing a VCAL attachment which Gnus is unable to > render, the error in the minibuffer says: > > Wrong type argument: char-or-string-p, nil > > The VCAL-attachment contains this: > > DTSTART;VALUE=DATE:20171208 > > The spec for DTSTART states that the value type for DTSTART can be > either DATE-TIME or DATE, so this seems like a valid format, so I am > inclined to think that this is a bug in emacs. Yes, it's allowed, but annoying. > Here is the backtrace (parameters removed > timezone-make-arpa-date(2000 0 0 "01:00:00" (3600 "CET")) > timezone-make-date-arpa-standard("20171208" nil nil) > gnus-icalendar-event--decode-datefield(...) > gnus-icalendar-event-from-ical(...) > gnus-icalendar-event-from-buffer(...) > gnus-icalendar-event-from-handle(...) > gnus-icalendar-mm-inline(...) > mm-display-inline(...) > mm-display-part(...) > gnus-mime-display-alternative(...) > gnus-mime-display-part(..) > gnus-display-mime() > gnus-article-prepare-display() > gnus-article-prepare(94599 nil) > gnus-summary-display-article(94599) > gnus-summary-next-article(nil) > > Looking at the backtrace it seems that the problem is related to parsing > the date string: "20171208". timezone-parse-date assumes that the time-of-day is present in the string to be parsed, which is not the case here. Looking at the code icalendar should set the time to "00000" in that case. Would you have a complete example VCAL file? Thanks Robert