Subject: apt-listchanges fails with custom locale
Package: apt-listchanges
Version: 2.70
Severity: important

Hi.

I'm using my own custom locale in debian. It seems that apt-listchanges
doesn't support the use of custom locales. The error I get is the
following:

Reading changelogs... Done
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 215, in ?
    main()
  File "/usr/bin/apt-listchanges", line 179, in main
    frontend.display_output(changes)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 431, in
display_output
    tmp.write(self._render(text))
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 365, in _render
    newtext.append(uline.encode(locale.getlocale()[1] or 'ascii',
'replace'))
  File "/usr/lib/python2.4/locale.py", line 365, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.4/locale.py", line 278, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: [EMAIL PROTECTED]
Extracting templates from packages: 100%

Any ideas? For additional information please ask me :)


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages apt-listchanges depends on:
ii  apt                           0.6.46.2   Advanced front-end for dpkg
ii  debconf [debconf-2.0]         1.5.6      Debian configuration
management sy
ii  debianutils                   2.17.3     Miscellaneous utilities
specific t
ii  python                        2.4.3-11   An interactive high-level
object-o
ii  python-apt                    0.6.19     Python interface to libapt-pkg
ii  python-support                0.5.4      automated rebuilding
support for p
ii  ucf                           2.0015     Update Configuration File:
preserv

Versions of packages apt-listchanges recommends:
ii  ssmtp [mail-transport-agent]  2.61-10    extremely simple MTA to get
mail o

-- debconf information:
* apt-listchanges/confirm: true
* apt-listchanges/which: changelogs
* apt-listchanges/frontend: pager
* apt-listchanges/email-address:
* apt-listchanges/save-seen: true



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to