apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

non ascii summary in imip #353

Closed macosforgebot closed 13 years ago

macosforgebot commented 13 years ago

mail@… originally submitted this as ticket:455


similiar to r7681 the following is needed:

root@km30208-01:~ # diff rpmbuild/BUILD/CalendarServer-3.0.svn7677/twistedcaldav/mail.py /usr/lib/python2.6/site-packages/twistedcaldav/mail.py -u
--- rpmbuild/BUILD/CalendarServer-3.0.svn7677/twistedcaldav/mail.py 2011-06-27 23:53:23.000000000 +0200
+++ /usr/lib/python2.6/site-packages/twistedcaldav/mail.py  2011-06-28 01:15:49.000000000 +0200
@@ -1240,7 +1240,7 @@
         results['month'] = dtStart.getMonth()
         results['day'] = dtStart.getDay()

-        summary = component.propertyValue("SUMMARY")
+        summary = component.propertyValue("SUMMARY").decode("utf-8")
         if summary is None:
             summary = ""
         results['summary'] = summary
macosforgebot commented 13 years ago

@m0rgen originally submitted this as comment:1:⁠ticket:455


Fixed in rev 7683

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:2:⁠ticket:455


btw. ticket #⁠442 and ticket #⁠409 are about very similar problems.

macosforgebot commented 13 years ago

mail@… originally submitted this as comment:3:⁠ticket:455


another character set problem is in #⁠423