GNU bug report logs - #22092
24.5; icalendar-import should strip windows newlines

Previous Next

Package: emacs;

Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>

Date: Fri, 4 Dec 2015 09:17:01 UTC

Severity: normal

Found in version 24.5

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
To: Ulf Jasper <ulf.jasper <at> web.de>
Cc: 22092 <at> debbugs.gnu.org
Subject: bug#22092: 24.5; icalendar-import should strip windows newlines
Date: Fri, 04 Dec 2015 21:54:04 +0100
[Message part 1 (text/plain, inline)]
Ulf Jasper <ulf.jasper <at> web.de> čálii:

> Am 04.12.2015 um 10:16 (+0100) schrieb Kevin Brubeck Unhammer:
>> Tried importing an .ics with `icalendar-import-buffer'. The file had the
>> Windows ^M newlines, no events were imported. Presumably, the function
>> should strip ^M's first (though note that the file itself is likely to
>> be chmod -w, e.g. if it was downloaded by Firefox and placed in /tmp).
>
> AFAIR icalendar files always contain CR LF sequences.  So the problem
> may be caused by something else than the line endings.
>
> Could you please supply a sample file (preferably anonymised)?

Sorry, thought I did but I guess I forgot to attach it. Trying again …

I did manage to import it after removing the ^M's though. A quick edebug
shows that
(icalendar--read-element nil nil)
populates ical-contents, but
(icalendar--all-events ical-list)
returns nil.


-Kevin

[badnl.ics (text/calendar, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 9 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.