Crashed with UnicodeDecodeError in set_menu()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv-indicator |
Fix Released
|
High
|
doug |
Bug Description
Mythtv-indicator.py crashed with UnicodeDecodeError in set_menu(): 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Intermittent crashes due to that certain days have non-ascii characters in them... Like mondays... :-)
Traceback:
Traceback (most recent call last):
File "/usr/share/
MYTHTV_
File "/usr/share/
self.work()
File "/usr/share/
self.
File "/usr/share/
tzlocal(
UnicodeDecodeE
stftime seems to barf out an 8-bit string containing utf-8 instead of a python unicode (16/32) string.
A quick fix would be to add a .decode('utf-8') to strftime something like this:
Actually, the encoding should probably be what's defined in locale.
I've cobbled together a a patch that tries to find out what encoding is in use, and fix all strftime calls in this way.
Changed in mythtv-indicator: | |
assignee: | nobody → doug (r-d-vaughan) |
status: | New → In Progress |
importance: | Undecided → High |
Changed in mythtv-indicator: | |
status: | In Progress → Fix Released |