From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.bugs Subject: bug#22092: 24.5; icalendar-import should strip windows newlines Date: Fri, 04 Dec 2015 21:54:04 +0100 Message-ID: <87r3j2exzn.fsf@mm.st> References: <87si3i376s.fsf@fsfe.org> <87mvtqw3ug.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1449262525 29627 80.91.229.3 (4 Dec 2015 20:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 20:55:25 +0000 (UTC) Cc: 22092@debbugs.gnu.org To: Ulf Jasper Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 04 21:55:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a4xNp-0006ct-O8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 21:55:13 +0100 Original-Received: from localhost ([::1]:43448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4xNp-0001lN-4a for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 15:55:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4xNj-0001hu-MZ for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:55:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4xNf-00082f-Sk for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:55:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4xNf-00082E-GM for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4xNe-0007Yr-Ah for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 15:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Brubeck Unhammer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2015 20:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22092 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22092-submit@debbugs.gnu.org id=B22092.144926245129007 (code B ref 22092); Fri, 04 Dec 2015 20:55:02 +0000 Original-Received: (at 22092) by debbugs.gnu.org; 4 Dec 2015 20:54:11 +0000 Original-Received: from localhost ([127.0.0.1]:39442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4xMp-0007Xm-9o for submit@debbugs.gnu.org; Fri, 04 Dec 2015 15:54:11 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4xMn-0007Xe-46 for 22092@debbugs.gnu.org; Fri, 04 Dec 2015 15:54:09 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 81B4C20592; Fri, 4 Dec 2015 15:54:08 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 04 Dec 2015 15:54:08 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=BfmLsTI9NEDuucZE8csOZgpBIqE=; b=o+r3J +CdiISc4nIsk3Uqeka/d7R9wgQjukQ5y5mrS/olR3BsXLweVPV+SSXUuFRiOKAdi OuP9GcVuLZ2rmUSQftpDwAhzZ/Zyo+vqqesasSXzBgdlusckesEC9p9jBAag2Uz7 5TtJM/T7N3pd6sTvFLFO2Pp4akkiU4b33be+Uk= X-Sasl-enc: QtSyC0zPI213YL7jFxG3zPRX/CRBiPJB7k9WxU3i7Wvp 1449262448 Original-Received: from kiwiarch (cm-84.210.14.246.getinternet.no [84.210.14.246]) by mail.messagingengine.com (Postfix) with ESMTPA id BF3076800D6; Fri, 4 Dec 2015 15:54:07 -0500 (EST) In-Reply-To: <87mvtqw3ug.fsf@web.de> (Ulf Jasper's message of "Fri, 04 Dec 2015 17:55:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109624 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ulf Jasper =C4=8D=C3=A1lii: > 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 =E2=80= =A6 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. =2DKevin --=-=-= Content-Type: text/calendar Content-Disposition: attachment; filename=badnl.ics Content-Transfer-Encoding: quoted-printable BEGIN:VCALENDAR=0D PRODID:-//www.norwegian.no//iCalendar MIMEDIR//EN=0D VERSION:2.0=0D METHOD:REQUEST=0D BEGIN:VEVENT=0D UID:RFCALITEM1=0D SEQUENCE:1512040950=0D DTSTAMP:20141204T095043Z=0D ORGANIZER:noreply@norwegian.no=0D DTSTART:20141208T173000Z=0D DTEND:20141208T215500Z=0D LOCATION:Stavanger-Sola=0D DESCRIPTION:Fly med Norwegian, reservasjon. Fra Stavanger til Tromsø 8= . des 2014 18:30, DY545Fly med Norwegian, reservasjon . Fra Stavanger til T= romsø 8. des 2014 21:00, DY390=0D X-ALT-DESC;FMTTYPE=3Dtext/html:Reisereferanse

SUMMARY:Norwegian til Tromsoe-Langnes - =0D CATEGORIES:Appointment=0D PRIORITY:5=0D CLASS:PUBLIC=0D TRANSP:OPAQUE=0D END:VEVENT=0D END:VCALENDAR --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWYf1tAAoJEPw8Hn0AkxZnwPIQAJSH6muetDBda61QMwoVZsQZ v51ueoCHr7wtsoQ31jRl5H7rFMAzw8myp2lSUxdrXmhjT2EaQGsMHrfYDU7v3Sq0 Wlcx0ajqch1kjVUvY5O8BlqyProc6Sw/iXniXG/jWuTVxohOAKJQoqQnPMT7YGBl uvVIVdg/JOTR9qNO2vtuNAWcZ8g6/drR2AAekaLW49YXIuilKnR1KWhdKTy65rn7 QFxStu6EVIGZ+NsKqY4grG3lE3f8f4WwCFoEHcqdwrg0cf0C2+xWIW9tS24JScA4 4+TLOPM6RVctuRl1X0zmztZjTBhSyk2MN3NwEjoXGFCg2H9kIaINZ9EF2PUYpD67 152ZKg1Sb+xldevrODgsLrwNxnjhHahZXNCN4Ntw8hl06/Tw+Q77MxFkca+9ZYkk HNrRfc35cEDj9HnUxu1Elb+yBo3oQUI/OdzuuGxBJ+tECtW6WdD5mD9u6Nib+o2l wA22iTfjsNHsaB1Gtg1LbT8hI8seSZ7oGtXpz5PRv+bNGMiDxUf0bdoF4z9Uy+le 8OsnNeXit6fQzEph4LUpm88hFWMPmYw0psQSRk7Vyb/92a4n1JuXHwNuyILJuwYc blsotNcCiZmOYOWLOHQHc+SdtXwh32bqWDwjd+0ZybEwPCCTF3Zb0nwAfE8JFELn Dx9gKyTQJahNlG6p42iK =mHIq -----END PGP SIGNATURE----- --==-=-=--