Bug#611923: python-xdg: wrong behaviour breaking apps on non-supported locale

2011-02-05 Thread Yann Dirson
On Fri, Feb 04, 2011 at 11:42:51AM +0100, Jakub Wilk wrote: Disclaimer: I'm not maintainer of this package. * Yann Dirson ydir...@free.fr, 2011-02-03, 20:56: In [1]: import xdg.DesktopEntry In [3]: e=xdg.DesktopEntry.DesktopEntry() In [4]: e.parse('plugins/Games/Chess.desktop') In

Bug#611923: [Python-modules-team] Bug#611923: python-xdg: wrong behaviour breaking apps on non-supported locale

2011-02-04 Thread Piotr Ożarowski
[Yann Dirson, 2011-02-03] In [6]: print %s % e.getName() -- print(%s % e.getName()) Échecs please do not use ipython to test encoding related issues, it has problems... UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 0: ordinal not in range(128)

Bug#611923: python-xdg: wrong behaviour breaking apps on non-supported locale

2011-02-04 Thread Jakub Wilk
Disclaimer: I'm not maintainer of this package. * Yann Dirson ydir...@free.fr, 2011-02-03, 20:56: In [1]: import xdg.DesktopEntry In [3]: e=xdg.DesktopEntry.DesktopEntry() In [4]: e.parse('plugins/Games/Chess.desktop') In [5]: e.getName() Out[5]: u'\xc9checs' In [6]: print %s % e.getName()

Bug#611923: [Python-modules-team] Bug#611923: python-xdg: wrong behaviour breaking apps on non-supported locale

2011-02-04 Thread Yann Dirson
On Fri, Feb 04, 2011 at 09:37:32AM +0100, Piotr O??arowski wrote: [Yann Dirson, 2011-02-03] In [6]: print %s % e.getName() -- print(%s % e.getName()) Échecs please do not use ipython to test encoding related issues, it has problems... OK - but that was only for ease of

Bug#611923: python-xdg: wrong behaviour breaking apps on non-supported locale

2011-02-03 Thread Yann Dirson
Package: python-xdg Version: 0.19-2 Severity: normal If I open a translated desktop file with LC_ALL=fr_FR.UTF-8, the following works as expected (ipython session): In [1]: import xdg.DesktopEntry In [3]: e=xdg.DesktopEntry.DesktopEntry() In [4]: e.parse('plugins/Games/Chess.desktop') In [5]: