Your message dated Thu, 10 Jan 2013 00:52:15 +0000
with message-id 
<CAOvn4qgzgD2b3mOgZnadz5RJA33APMgeCxY+=sdzcf95twq...@mail.gmail.com>
and subject line Closing
has caused the Debian Bug report #611923,
regarding python-xdg: wrong behaviour breaking apps on non-supported locale
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
611923: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611923
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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]: e.getName()
Out[5]: u'\xc9checs'

In [6]: print "%s" % e.getName()
------> print("%s" % e.getName())
Échecs


Now, if I use LC_ALL=fr_FR or fr_FR.ISO-8859-1 (which should be
equivalent), the final step instead throws:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 0: 
ordinal not in range(128)


It clearly fails to guess the correct charset to use.


By contrast, other programs in the same condition fallback to C
locale, which results in no error.  I guess the xdg module should do
something similar.

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34.1-00003-ge5b0813-dirty (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-xdg depends on:
ii  python                  2.6.6-3+squeeze5 interactive high-level object-orie
ii  python-support          1.0.10           automated rebuilding support for P

python-xdg recommends no packages.

python-xdg suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
I'm closing this, as I don't think it's actually a bug in PyXDG, and
there's been no response for several months.

It's been pointed out that I should have added a 'moreinfo' tag with my
last message, but I didn't know about tags then.

--- End Message ---

Reply via email to