Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#511448: apt_listchanges.py throws 'locale utf_8_euro not found'

0 views
Skip to first unread message

Jörg Wölke

unread,
Jan 10, 2009, 8:00:13 PM1/10/09
to
Package: apt-listchanges
Version: 2.83
Severity: normal


Hello!

If you use locales like "de_DE.UTF-8@euro", the script
/usr/share/apt-listchanges/apt_listchanges.py
throws an exception ("LookupError: unknown encoding: utf_8_euro"),
because of the (incorrect) use of "locale.getdefaultlocale()[1]" in
lines 93 and 165 in apt_listchanges.py. Python can't know all the
possible locales on all possible systems. So the recommended way
is locale.getpreferredencoding(), which uses the systems API.

After changing that in lines 93 and 165 in
/usr/share/apt-listchanges/apt_listchanges.py the error disappears.

See:
http://mail.python.org/pipermail/python-list/2008-May/493997.html

HTH and Greetings, J"o!

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (991, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-grml (SMP w/1 CPU core; PREEMPT)
Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

--
Don't hate yourself in the morning -- sleep till noon.

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

0 new messages