Summary: | iCalendar format broken, iCal export broken: missing LF at EOF | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | pablo funes <pablo> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | marc.blanchet, nomis80, smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | icalendar file exported with a patch korganizer |
Description
pablo funes
2009-01-28 23:54:01 UTC
I confirm the file ends with CR LF CR With this bug in, trying to import any KOrganizer calendar to Apple iCal (Version 3.0.6 (1273)) fails with the following error: "This calendar file is unreadable. No events have been added to your iCal calendar." A workaround is to open the file with a text editor and simply save it without making any changes. It works with Vim, which quietly fixes the problem line. However, the calendars I publish from my KOrganizer are no longer readable by my iCal subscribers :-( Update: bug still present in KOrganizer 4.2 rc1 Here's a sample ASCII dump. You can see the last END:VEVENT line ends with cr nl but the final END:VCALENDAR line lacks the nl. 0000720 A Q U E cr nl E N D : V E V E N T 0000740 cr nl E N D : V C A L E N D A R cr *** Bug 182913 has been marked as a duplicate of this bug. *** Created attachment 30882 [details]
icalendar file exported with a patch korganizer
Can any reporters test if this file opens fine?
It ends with \r\n\r\n
attachment imported just fine in ical Version 3.0.6 (1273) (most current version). I see an event on feb 4th 4h00am in the morning. looks fixed to me. Note that a single \r\n should be sufficient, according to the RFC. (In reply to comment #7) > Note that a single \r\n should be sufficient, according to the RFC. Yeah, it is, but that's an upstream "bug" (I think it doesn't harm though), not KDE's. IMHO the best is to commit the korganizer's bug (the \n that was being eaten) and mail the libical devs about the double end of line. SVN commit 920488 by smartins: Fix a Qt4 porting bug. No need to discard the last byte as it's not a NUL anymore. BUG: 182224 M +1 -1 icalformat.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=920488 SVN commit 920617 by perreaul: Fix a Qt4 porting bug. No need to discard the last byte as it's not a NUL anymore. BUG: 182224 M +1 -1 icalformat.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=920617 |