From 3593799f978223f57904d4c47fa12d0a09a03604 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@74e4794c-479d-4a33-9dda-c6c359d70f12> Date: Mon, 13 Jul 2009 20:24:29 +0000 Subject: [PATCH] Fix a unicode/string bug in plain support git-svn-id: http://svn.32rwr.info/radicale/trunk@6 74e4794c-479d-4a33-9dda-c6c359d70f12 --- radicale/support/plain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/support/plain.py b/radicale/support/plain.py index f102433b..37f7a93b 100644 --- a/radicale/support/plain.py +++ b/radicale/support/plain.py @@ -57,7 +57,7 @@ def append(cal, vcalendar): """ Append vcalendar to cal """ - oldCalendar = read(cal) + oldCalendar = unicode(read(cal), config.get("encoding", "stock")) oldTzs = [tz.tzid for tz in ical.timezones(oldCalendar)] path = os.path.join(_folder, cal.replace(posixpath.sep, os.path.sep)) @@ -103,7 +103,7 @@ def remove(cal, etag): """ path = os.path.join(_folder, cal.replace(posixpath.sep, os.path.sep)) - cal = read(cal) + cal = unicode(read(cal), config.get("encoding", "stock")) headers = ical.headers(cal) timezones = ical.timezones(cal)