[Calendarserver-maintainers] Bug#841247: calypso: UnicodeDecodeError when importing an .ics
Guido Günther
agx at sigxcpu.org
Sun Oct 23 10:28:37 UTC 2016
control: affects -1 calypso
control: severity -1 grave
control: retitle -1 Unicode handling broken in 0.9.x with python 2.7
On Wed, Oct 19, 2016 at 01:16:16AM +0200, Jens Reyer wrote:
> Package: calypso
> Version: 1.5-3
> Severity: normal
>
> Hi,
>
> I tried to import the .ics of my old exported ownCloud calendar,
> but this failed with an UnicodeDecodeError. You may reproduce this
> (note the accent in Café):
>
> $ cat calypso-unicode-bug.ics
> BEGIN:VCALENDAR
> VERSION:2.0
> BEGIN:VEVENT
> SUMMARY:Café
> END:VEVENT
> END:VCALENDAR
>
> $ calypso --import private/test calypso-unicode-bug.ics
> Failed to import: calypso-unicode-bug.ics
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 524, in import_file
> self.import_item(new_item, path)
> File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 504, in import_item
> self.create_file(new_item, context={})
> File "/usr/lib/python2.7/dist-packages/calypso/webdav.py", line 389, in create_file
> context['action'] = u'Add %s'%item
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
The unicode handling for python 2.7 got broken in upstream commit
https://github.com/eventable/vobject/commit/b3f9bbcf4cf222f0dda3ac29f96364c5d7ab5f16
Let's see if upstream cares at all. If not we should rather drop the
python2.7 version for stretch.
Cheers,
-- Guido
More information about the Calendarserver-maintainers
mailing list