Package: python-feedvalidator
Version: 0~svn1022-1
Severity: grave
Tags: l10n
Justification: renders package unusable

The issue is that with Debian squeeze /etc/default/locale now defines
LANGUAGE.  On my system that file looks like this

#  File generated by update-locale
#LANG=en_CA.UTF-8
LANGUAGE="en_CA:en"

The result is that LANGUAGE string is supplied as an environment
variable to all users which kills feedvalidator completely.

Here is the locale and the associated typical error for one of the
users on this system:

barb...@raven> locale |grep LANG
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en

barb...@raven> feedvalidator highlights.atom
Validating file:///home/barbara/linuxlinks/loll/highlights.atom
Traceback (most recent call last):
  File "/usr/bin/feedvalidator", line 101, in <module>
    main()
  File "/usr/bin/feedvalidator", line 97, in main
    run()
  File "/usr/bin/feedvalidator", line 47, in run
    from feedvalidator.formatter.text_plain import Formatter
  File "/usr/lib/pymodules/python2.6/feedvalidator/formatter/text_plain.py", 
line 9, in <module>
    from base import BaseFormatter
  File "/usr/lib/pymodules/python2.6/feedvalidator/formatter/base.py", line 12, 
in <module>
    lang = __import__('feedvalidator.i18n.%s' % LANGUAGE, globals(), locals(), 
LANGUAGE)
ImportError: No module named en_CA:en

A quick look at the package list for python-feedvalidator indicates
the only i18n module there is called en.py.  Indeed a workaround for
this issue is to set the LANGUAGE environment variable as follows:

LANGUAGE=en

before running feedvalidator.  But unless people figure that out,
this bug means that nobody can use feedvalidator which is why I
have classified this as a grave error.

A quick look at en.py indicates it contains english error messages for
feedvalidator.  If there is no prospect of translating those to
other languages, then I suggest simply importing that module
directly in /usr/lib/pymodules/python2.6/feedvalidator/formatter/base.py
without fooling around with LANGUAGE at all.  Otherwise, you could do
something more complicated like use only the first two characters
of LANGUAGE to identify the language and store those in LA and
use that variable instead, but then if it fails to import
LA.py, fall back to en.py.

But without one of those fixes, python-feedvalidator will be broken
for everybody who is not aware of the "LANGUAGE=en" workaround.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-feedvalidator depends on:
ii  python                      2.6.5-5      An interactive high-level object-o
ii  python-libxml2              2.7.7.dfsg-4 Python bindings for the GNOME XML 
ii  python-rdflib               2.4.2-1+b1   RDF library containing an RDF trip
ii  python-support              1.0.9        automated rebuilding support for P

python-feedvalidator recommends no packages.

python-feedvalidator suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to