On Mon, Jul 02, 2007 at 12:31:56AM +0200, dAniel hAhler wrote:
> Package: apt-listchanges
> Version: 2.74
> Severity: normal
> Tags: patch
> 
> If the locale settings are broken (which can happen e.g. in the process of
> upgrading), apt-listchanges fails with the following backtrace:
>   Traceback (most recent call last):
>     File "/usr/bin/apt-listchanges", line 37, in <module>
>       locale.setlocale(locale.LC_ALL, '')
>     File "locale.py", line 476, in setlocale
>       return _setlocale(category, locale)
>   Error: unsupported locale setting
> 
> I think it makes more sense to gracefully ignore the broken locale
> setup and just continue using the C locale.
> 
> The following patch/debdiff fixes this, by enclosing the locale.setlocale call
> in a try/except block.
> 
> See https://bugs.launchpad.net/ubuntu/+source/apt-listchanges/+bug/91583
> for the bug reported in Ubuntu.

  The patch looks wrong. And reading the bug, it's due to a breakage of
Ubuntu that loses locales. I'm not sure I'll take that patch as is.

-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org

Attachment: pgpYKW4xqLR9b.pgp
Description: PGP signature

Reply via email to