From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: Ulf Jasper <ulf.jasper@web.de>
Cc: 22092@debbugs.gnu.org
Subject: bug#22092: 24.5; icalendar-import should strip windows newlines
Date: Fri, 04 Dec 2015 21:54:04 +0100 [thread overview]
Message-ID: <87r3j2exzn.fsf@mm.st> (raw)
In-Reply-To: <87mvtqw3ug.fsf@web.de> (Ulf Jasper's message of "Fri, 04 Dec 2015 17:55:35 +0100")
[-- Attachment #1.1: Type: text/plain, Size: 906 bytes --]
Ulf Jasper <ulf.jasper@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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: badnl.ics --]
[-- Type: text/calendar, Size: 899 bytes --]
BEGIN:VCALENDAR
PRODID:-//www.norwegian.no//iCalendar MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
UID:RFCALITEM1
SEQUENCE:1512040950
DTSTAMP:20141204T095043Z
ORGANIZER:noreply@norwegian.no
DTSTART:20141208T173000Z
DTEND:20141208T215500Z
LOCATION:Stavanger-Sola
DESCRIPTION:Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8. des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til Tromsø 8. des 2014 21:00, DY390
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head><META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"><title></title></head><body><b><font face="Calibri" size="3">Reisereferanse</p></body></html>
SUMMARY:Norwegian til Tromsoe-Langnes -
CATEGORIES:Appointment
PRIORITY:5
CLASS:PUBLIC
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2015-12-04 20:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 9:16 bug#22092: 24.5; icalendar-import should strip windows newlines Kevin Brubeck Unhammer
2015-12-04 16:55 ` Ulf Jasper
2015-12-04 20:54 ` Kevin Brubeck Unhammer [this message]
2015-12-05 16:18 ` Ulf Jasper
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3j2exzn.fsf@mm.st \
--to=unhammer@fsfe.org \
--cc=22092@debbugs.gnu.org \
--cc=ulf.jasper@web.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.