[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#961675: reportbug: Cannot report bug due to char encoding problem



Package: reportbug
Version: 7.6.0
Severity: normal

Dear Maintainer,

today I tried provide extra information for an existing bug report,
which failed:


$ reportbug -N 590876
Warning: untranslated token "envelopefrom"
*** Welcome to reportbug.  Use ? for help at prompts. ***
Note: bug reports are publicly archived (including the email address of the submitter).
Detected character set: ISO-8859-15
Please change your locale if this is incorrect.

Using 'Marc-Jano Knopp <pub_br_debian.org@marc-jano.de>' as your from address.
Retrieving report #590876 from Debian bug tracking system...

{ Here, I get a "less" prompt reading "byte 0/0 (END)", which I quit by
  pressing 'q'. }

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2284, in <module>
    main()
  File "/usr/bin/reportbug", line 1115, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1391, in user_interface
    exinfo = ui.show_report(report, 'debian', self.options.mirrors,
  File "/usr/lib/python3/dist-packages/reportbug/ui/text_ui.py", line 456, in show_report
    fd.write(text)
  File "/usr/lib/python3.8/encodings/iso8859_15.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0148' in position 369: character maps to <undefined>
$ echo $?
1
$

Observations:

- The error does not occur with an UTF-8 uxrvt.
- The error does not occur on e.g. bug #177000.
- It seems it chokes on the name of the "Upstream Author" in #590876.
- It may be that bug #814454 is related to this bug.


-- Package-specific info:
** Environment settings:
EDITOR="jed"
DEBEMAIL="pub_br_debian.org@marc-jano.de"
DEBFULLNAME="Marc-Jano Knopp"
INTERFACE="text"

** /home/mjk/.reportbugrc:
reportbug_version "3.8"
mode standard
ui text
realname "Marc-Jano Knopp"
email "pub_br_debian.org@marc-jano.de"
envelopefrom "pub_br_debian.org@marc-jano.de"

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'stable'), (50, 'unstable'), (25, 'oldstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.ISO-8859-15 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.1.4
ii  python3            3.8.2-3
ii  python3-reportbug  7.6.0
ii  sensible-utils     0.0.12+nmu1

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                    <none>
pn  debconf-utils                 <none>
pn  debsums                       <none>
pn  dlocate                       <none>
ii  emacs-bin-common              1:26.3+1-2
ii  file                          1:5.38-5
ii  gnupg                         2.2.20-1
pn  python3-urwid                 <none>
pn  reportbug-gtk                 <none>
ii  ssmtp [mail-transport-agent]  2.64-9
ii  xdg-utils                     1.1.3-2

Versions of packages python3-reportbug depends on:
ii  apt                2.1.4
ii  file               1:5.38-5
ii  python3            3.8.2-3
ii  python3-apt        2.1.3
ii  python3-debian     0.1.37
ii  python3-debianbts  3.0.2
ii  python3-requests   2.23.0+dfsg-2
ii  sensible-utils     0.0.12+nmu1

python3-reportbug suggests no packages.

-- no debconf information


Reply to: