From: Robert Pluim <rpluim@gmail.com>
To: Vegard Vesterheim <vegard.vesterheim@uninett.no>
Cc: 29116@debbugs.gnu.org
Subject: bug#29116: 24.5; Parsing dates from VCAL
Date: Sun, 05 Nov 2017 11:19:08 +0100 [thread overview]
Message-ID: <87mv41vxib.fsf@gmail.com> (raw)
In-Reply-To: <1smv459hy3.fsf@voll.uninett.no> (Vegard Vesterheim's message of "Thu, 02 Nov 2017 09:57:08 +0100")
Vegard Vesterheim <vegard.vesterheim@uninett.no> 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
next prev parent reply other threads:[~2017-11-05 10:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 8:57 bug#29116: 24.5; Parsing dates from VCAL Vegard Vesterheim
2017-11-05 10:19 ` Robert Pluim [this message]
2017-11-06 7:45 ` Vegard Vesterheim
2017-11-06 10:01 ` Robert Pluim
2017-11-06 11:16 ` Vegard Vesterheim
2017-11-06 11:19 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mv41vxib.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=29116@debbugs.gnu.org \
--cc=vegard.vesterheim@uninett.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).