Devuan bug report logs - #659
Reportbug does not run with non-utf8 encodings anymore

Package: python3-apt; Maintainer for python3-apt is (unknown); Source for python3-apt is src:python-apt.

Reported by: Klaus Ethgen <Klaus@ethgen.de>

Date: Sun, 30 Jan 2022 12:36:05 UTC

Severity: normal

Tags: debian

Merged with 679

Forwarded to https://bugs.debian.org/1003065

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, Mark Hindley <mark@hindley.org.uk>:
bug#659; Package reportbug. (Sun, 30 Jan 2022 12:36:05 GMT) (full text, mbox, link).


Acknowledgement sent to Klaus Ethgen <Klaus@ethgen.de>:
New bug report received and forwarded. Copy sent to Mark Hindley <mark@hindley.org.uk>. (Sun, 30 Jan 2022 12:36:10 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Klaus Ethgen <Klaus@ethgen.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: Reportbug does not run with non-utf8 encodings anymore
Date: Sun, 30 Jan 2022 09:39:10 +0100
[Message part 1 (text/plain, inline)]
Package: reportbug
Version: 11.3.0+devuan1
Severity: normal

Since some time it is not possible anymore to use reportbug on non-utf8
encoding (or non-ascii?)

I get the following error:
   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:

   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 39, in <module>
       from reportbug import utils
     File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 100, 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

I have to run reportbug with all LC_* and LANGUAGE variables deleted so
it will stay in pure ASCII.

This kind of bug is pretty common with python tools. Usually only python
authors are prone to this kind of bug. I almost never see this kind of
trouble from other programming languages.

-- Package-specific info:
** Environment settings:
EDITOR="vim"
PAGER="less"
VISUAL="vim"
EMAIL="Klaus Ethgen <Klaus@Ethgen.ch>"
DEBFULLNAME="Klaus Ethgen"
INTERFACE="text"

** /home/klaus/.reportbugrc:
reportbug_version "2.20"
mode expert
ui text
realname "Klaus Ethgen"
email "Klaus@Ethgen.de"

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 5 (daedalus/ceres)
Release:	5
Codename:	daedalus ceres
Architecture: x86_64

Kernel: Linux 5.13.4 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CPU_OUT_OF_SPEC, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages reportbug depends on:
ii  apt                2.3.14+devuan1
ii  python3            3.9.8-1
ii  python3-reportbug  11.3.0+devuan1
ii  sensible-utils     0.0.17

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
ii  debconf                                    1.5.79
ii  debsums                                    3.0.2
ii  dlocate                                    1.10
pn  emacs-bin-common                           <none>
ii  exim4-daemon-light [mail-transport-agent]  4.95-3
ii  file                                       1:5.41-2
ii  gnupg                                      2.2.27-3
ii  python3-urwid                              2.1.2-2+b1
pn  reportbug-gtk                              <none>
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.3.14+devuan1
ii  file               1:5.41-2
ii  python3            3.9.8-1
ii  python3-apt        2.3.0+b1
ii  python3-debian     0.1.43
ii  python3-debianbts  3.2.0
ii  python3-requests   2.25.1+dfsg-2
ii  sensible-utils     0.0.17

python3-reportbug suggests no packages.

-- Configuration Files:
/etc/reportbug.conf changed:
submit
mutt
no-query-bts
cc
config-files
compress
sign gpg
verify
mode expert
mbox_reader_cmd "mutt -f %s"


-- no debconf information

Regards
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to devuan-bugs@lists.dyne.org:
bug#659; Package reportbug. (Sun, 30 Jan 2022 12:54:01 GMT) (full text, mbox, link).


Message #8 received at 659@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Klaus Ethgen <Klaus@ethgen.de>, 659@bugs.devuan.org
Subject: Re: bug#659: Reportbug does not run with non-utf8 encodings anymore
Date: Sun, 30 Jan 2022 12:51:43 +0000
Klaus,

Thanks for this.

On Sun, Jan 30, 2022 at 09:39:10AM +0100, Klaus Ethgen wrote:
> Package: reportbug
> Version: 11.3.0+devuan1
> Severity: normal
> 
> Since some time it is not possible anymore to use reportbug on non-utf8
> encoding (or non-ascii?)

What locale settings are you using?

Mark

Information forwarded to devuan-bugs@lists.dyne.org, Mark Hindley <mark@hindley.org.uk>:
bug#659; Package reportbug. (Sun, 30 Jan 2022 13:02:02 GMT) (full text, mbox, link).


Acknowledgement sent to Klaus Ethgen <Klaus@ethgen.de>:
Extra info received and forwarded to list. Copy sent to Mark Hindley <mark@hindley.org.uk>. (Sun, 30 Jan 2022 13:02:06 GMT) (full text, mbox, link).


Message #13 received at 659@bugs.devuan.org (full text, mbox, reply):

From: Klaus Ethgen <Klaus@ethgen.de>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 659@bugs.devuan.org
Subject: Re: bug#659: Reportbug does not run with non-utf8 encodings anymore
Date: Sun, 30 Jan 2022 13:59:55 +0100
[Message part 1 (text/plain, inline)]
Hi,

Am So den 30. Jan 2022 um 13:51 schrieb Mark Hindley:
> On Sun, Jan 30, 2022 at 09:39:10AM +0100, Klaus Ethgen wrote:
> > Package: reportbug
> > Version: 11.3.0+devuan1
> > Severity: normal
> > 
> > Since some time it is not possible anymore to use reportbug on non-utf8
> > encoding (or non-ascii?)
> 
> What locale settings are you using?

de_DE (so latin1)

Regards
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
[signature.asc (application/pgp-signature, inline)]

Information forwarded to devuan-bugs@lists.dyne.org:
bug#659; Package reportbug. (Sun, 30 Jan 2022 13:08:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. (Sun, 30 Jan 2022 13:08:06 GMT) (full text, mbox, link).


Message #18 received at 659@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Klaus Ethgen <Klaus@ethgen.de>, 659@bugs.devuan.org
Subject: Re: bug#659: Reportbug does not run with non-utf8 encodings anymore
Date: Sun, 30 Jan 2022 13:05:12 +0000
Control: reassign -1 python3-apt
Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/1003065

Klaus,

This appears to have been reported in Debian's BTS[1] and reassigned to
python3-apt.

Are you using de_DE@euro?

Does this reproduce?
 
> $ 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.


Mark

[1]  https://bugs.debian.org/1003065


bug reassigned from package 'reportbug' to 'python3-apt'. Request was from Mark Hindley <mark@hindley.org.uk> to 659-submit@bugs.devuan.org. (Sun, 30 Jan 2022 13:08:08 GMT) (full text, mbox, link).


No longer marked as found in versions 11.3.0+devuan1. Request was from Mark Hindley <mark@hindley.org.uk> to 659-submit@bugs.devuan.org. (Sun, 30 Jan 2022 13:08:08 GMT) (full text, mbox, link).


Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 659-submit@bugs.devuan.org. (Sun, 30 Jan 2022 13:08:08 GMT) (full text, mbox, link).


Set bug forwarded-to-address to 'https://bugs.debian.org/1003065'. Request was from Mark Hindley <mark@hindley.org.uk> to 659-submit@bugs.devuan.org. (Sun, 30 Jan 2022 13:08:08 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#659; Package python3-apt. (Sun, 30 Jan 2022 13:18:01 GMT) (full text, mbox, link).


Acknowledgement sent to Klaus Ethgen <Klaus@ethgen.de>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Sun, 30 Jan 2022 13:18:04 GMT) (full text, mbox, link).


Message #31 received at 659@bugs.devuan.org (full text, mbox, reply):

From: Klaus Ethgen <Klaus@ethgen.de>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 659@bugs.devuan.org
Subject: Re: bug#659: Reportbug does not run with non-utf8 encodings anymore
Date: Sun, 30 Jan 2022 14:15:08 +0100
[Message part 1 (text/plain, inline)]
Hi Mark,

Am So den 30. Jan 2022 um 14:05 schrieb Mark Hindley:
> This appears to have been reported in Debian's BTS[1] and reassigned to
> python3-apt.

Ah, ok.

> Are you using de_DE@euro?

No. I live in a country that does not have Teuro. ;-)

> Does this reproduce?
>  
> > $ python3
> > >>> import locale
> > >>> locale.setlocale(locale.LC_ALL, "")
> > 'de_DE@euro'
> > >>> import apt
> > >>> c = apt.Cache()

For me that reproduce the bug. But the output is de_DE (without @euro).

But even with `LC_ALL=de_DE@euro python3` I get the error.

> > Setting LANG=de_DE@euro is not sufficient to trigger the problem, also
> > make sure LANGUAGE is not set.

I do not understand...

LANG is set to de_DE and LANGUAGE is set to de_DE:en on my system.

Regards
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
[signature.asc (application/pgp-signature, inline)]

Merged 659 679 Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Thu, 26 May 2022 11:06:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Apr 20 03:57:57 2024;