From 6fabb04bbe2f4c87678480a9e59d099b7875b121 Mon Sep 17 00:00:00 2001 From: romjerome Date: Wed, 16 Mar 2016 11:19:15 +0100 Subject: [PATCH] 9151: [Regression] vCal Export File format invalid Do not encode text anymore (patch by Serge) Fix an invalid RRULE for annual recurence TODO: maybe try to update to VCalendar 2.0 (iCal)? --- gramps/plugins/export/exportvcalendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/export/exportvcalendar.py b/gramps/plugins/export/exportvcalendar.py index 74d474be8..bf90d4a06 100644 --- a/gramps/plugins/export/exportvcalendar.py +++ b/gramps/plugins/export/exportvcalendar.py @@ -90,7 +90,7 @@ class CalendarWriter(object): self.oldval = newval def writeln(self, text): - self.g.write('%s\n' % text.encode('ascii', 'backslashreplace')) + self.g.write('%s\n' % text) def export_data(self, filename): @@ -239,7 +239,7 @@ class CalendarWriter(object): self.writeln("SUMMARY:"+_("Anniversary: %s") % event_text) if location: self.writeln("LOCATION:%s" % location) - self.writeln("RRULE:YD1 #0") + self.writeln("RRULE:FREQ=YEARLY") self.writeln(date_string) self.writeln("END:VEVENT")