Package: diffuse Version: 0.2.15-1 Severity: normal Tags: l10n
Diffuse stopped working when I switched from lenny to sid. When trying to run it (with or without any file), I get: Traceback (most recent call last): File "/usr/bin/diffuse", line 489, in <module> theResources = Resources() File "/usr/bin/diffuse", line 295, in __init__ help_file = os.path.join(getLocalisedDir('/usr/share/gnome/help/diffuse'), 'diffuse.xml') File "/usr/bin/diffuse", line 180, in getLocalisedDir path = os.path.join(s, lang) File "/usr/lib/python2.5/posixpath.py", line 60, in join if b.startswith('/'): AttributeError: 'NoneType' object has no attribute 'startswith' Looking at the source and adding some print calls, I located the problem: the function os.path.join is called with lang = 'None'. This value is the one returned by the function locale.getdefaultlocale. Looking then at /usr/lib/python2.5/locale.py, they say that the locale should be searched in LC_ALL, LC_CTYPE, LANG and LANGUAGE , but the function getdefaultlocale always returns 'None'. In my system, running env|fgrep LANG gives LANG=C GDM_LANG=C running env|fgrep LC gives nothing and locale says: LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL= Otherwise, 'diffuse' works well when forcing lang to 'C' at line 179. -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-rc8 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages diffuse depends on: ii python 2.5.2-3 An interactive high-level object-o ii python-gtk2 2.12.1-6 Python bindings for the GTK+ widge diffuse recommends no packages. Versions of packages diffuse suggests: ii desktop-file-utils 0.15-1 Utilities for .desktop files ii scrollkeeper 0.3.14-16 A free electronic cataloging syste -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org