control: reassign 1003065 python3-apt
On 03.01.2022 16.10, Adolf Markus Berthold wrote: > Package: reportbug > Version: 7.10.3+deb11u1 > Severity: normal > Tags: l10n > > Dear Maintainer, > > reportbug (console-version) raises an exception when called with the locale > de_DE@euro : > > ---------8<------------------------------------------------------------ > :~$ LANG=de_DE@euro reportbug > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 3: > invalid continuation byte > > The above exception was the direct cause of the following exception: > > SystemError: <class 'UnicodeDecodeError'> returned a result with an error set > > The above exception was the direct cause of the following exception: > > SystemError: <class 'UnicodeDecodeError'> returned a result with an error set > > The above exception was the direct cause of the following exception: > > SystemError: <class 'UnicodeDecodeError'> returned a result with an error set > > The above exception was the direct cause of the following exception: > > SystemError: <class 'UnicodeDecodeError'> returned a result with an error set > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File "/usr/bin/reportbug", line 44, in <module> > from reportbug import utils > File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 109, in > <module> > _apt_cache = apt.Cache() > File "/usr/lib/python3/dist-packages/apt/cache.py", line 152, in __init__ > self.open(progress) > File "/usr/lib/python3/dist-packages/apt/cache.py", line 214, in open > self._cache = apt_pkg.Cache(progress) > SystemError: <class 'apt_pkg.Cache'> returned a result with an error set > ---------8<------------------------------------------------------------ Can reproduce on bullseye and sid, using this sequence: $ python3 >>> import locale >>> locale.setlocale(locale.LC_ALL, "") 'de_DE@euro' >>> import apt >>> c = apt.Cache() Setting LANG=de_DE@euro is not sufficient to trigger the problem, also make sure LANGUAGE is not set.