Crash everytime I click 'Show Calendar' (UnicodeEncodeError)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Calendar-Indicator |
New
|
Undecided
|
Unassigned |
Bug Description
When I click 'Show Calendar' Apport just pops up telling me the app has crashed. I can reproduce this every time. I'm on Ubuntu 12.04 amd64. Calendar-Indicator version: 0.1.0.8.
From the apport .crash file I have:
Traceback:
Traceback (most recent call last):
File "/usr/share/
cd = CalendarWindow(
File "/usr/share/
self.
File "/usr/share/
print(
UnicodeEncodeE
From the last line it seems the app is trying to ascii-encode the character 'ø' (Latin Small Letter O With Stroke) which can't be done. In my country this character is used very commonly (both in event descriptions and in the name of some weekdays). Events with descriptions containing the character show up just fine on the list when I click the indicator.
Here is a very rough patch against my version (0.1.0. 7.precise. 2).
I simply utf-8-encode the event-summary before print is called. This stops the crashing and shows the calendar with all special characters in event summary.
Not sure about regressions though, since I don't know the codebase. (Will this affect event editing for instance?)