[Reportbug-maint] Bug#512506: reportbug crashes, if locale is not installed

Nico Schottelius nico-debian-reportbug at schottelius.org
Wed Jan 21 11:22:35 UTC 2009


Package: reportbug
Version: 3.48
Severity: normal

I'm logged in via ssh with a locale that is not yet generated and get this traceback:

Checking for newer versions at packages.debian.org, incoming.debian.org and http://ftp-master.debian.org/new.html
Querying Debian BTS for reports on linux-2.6 (source)...
902 bug reports found:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1829, in <module>
    main()
  File "/usr/bin/reportbug", line 850, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 958, in user_interface
    main()
  File "/usr/bin/reportbug", line 850, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1388, in user_interface
    version=pkgversion)
  File "/usr/share/reportbug/reportbuglib/reportbug_ui_text.py", line 529, in handle_bts_query
    mirrors, http_proxy, screen, title)
  File "/usr/share/reportbug/reportbuglib/reportbug_ui_text.py", line 541, in browse_bugs
    output_encoding = locale.getpreferredencoding()
  File "/usr/lib/python2.5/locale.py", line 514, in getpreferredencoding
    setlocale(LC_CTYPE, "")
  File "/usr/lib/python2.5/locale.py", line 478, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Maybe warn, but not abort?


-- Package-specific info:
** Environment settings:
INTERFACE="text"

** /root/.reportbugrc:
reportbug_version "3.48"
mode expert
ui text
realname "Nico Schottelius"
email "nico-debian-reportbug at schottelius.org"
no-check-uid

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_CH.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                           0.7.20     Advanced front-end for dpkg
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-central                0.6.8      register and build utility for Pyt

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                 <none>     (no description available)
pn  debsums                       <none>     (no description available)
pn  dlocate                       <none>     (no description available)
ii  file                          4.26-1     Determines file type using "magic"
ii  gnupg                         1.4.9-3    GNU privacy guard - a free PGP rep
ii  postfix [mail-transport-agent 2.5.5-1.1  High-performance mail transport ag
pn  python-urwid                  <none>     (no description available)

-- no debconf information





More information about the Reportbug-maint mailing list