weather-yahoo plugin crashes in some locales
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome15 |
In Progress
|
Medium
|
Nuno Araujo |
Bug Description
According to the locale configuration of the computer, the weather-yahoo plugin crashes.
This happens when parsing the sunrise and sunset times.
According to the python documentation, the strptime method takes the current application locale into account when doing it's parsing. This method fails as below if e.g the LC_TIME env var is set to fr_CH.utf8
Traceback (most recent call last):
File "/usr/share/
self._weather = backend.
File "/usr/share/
return self._do_
File "/usr/share/
sunset = time.strptime(
File "/usr/lib/
return _strptime(
File "/usr/lib/
data_
ValueError: unconverted data remains: pm
Related branches
- tanktarta: Pending requested
-
Diff: 48 lines (+17/-2)2 files modifiedgnome15-plugins/src/weather-yahoo/weather-yahoo.py (+2/-2)
gnome15/src/main/python/gnome15/g15locale.py (+15/-0)
Changed in gnome15: | |
assignee: | nobody → Nuno Araujo (russo79) |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in gnome15: | |
status: | Fix Committed → In Progress |