Subject: reportbug can not handle SMTP passwords with non ASCII UTF8 characters
Package: reportbug
Version: 13.0.1
Severity: normal

For german users passwords containing non ASCII UTF8 characters like Umlauts is 
normal.
If usng UTF8 password reportbug stops with the error:

Connecting to xxxxxx via SMTP...
Enter SMTP password for x...@xxxxxxx.xxx:
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2386, in <module>
    main()
  File "/usr/bin/reportbug", line 1094, in main
    return iface.user_interface()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/reportbug", line 2369, in user_interface
    submit.send_report(
  File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 483, in 
send_report
    conn.login(smtpuser, smtppasswd)
  File "/usr/lib/python3.11/smtplib.py", line 739, in login
    (code, resp) = self.auth(
                   ^^^^^^^^^^
  File "/usr/lib/python3.11/smtplib.py", line 641, in auth
    response = encode_base64(initial_response.encode('ascii'), eol='')
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'ascii' codec can't encode character '\uxxxx' in position 
nn: ordinal not in range(128)

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

** /home/mi/.reportbugrc:
reportbug_version "7.5.0"
mode advanced
ui text
email "mjbec...@web.de"
smtphost "smtp.web.de"
smtpuser "mjbecker"
smtptls

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.9.3
ii  python3            3.11.8-1
ii  python3-reportbug  13.0.1
ii  sensible-utils     0.0.22

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
ii  debconf                                    1.5.86
pn  debsums                                    <none>
pn  dlocate                                    <none>
ii  emacs-bin-common                           1:29.3+1-3
ii  exim4-daemon-light [mail-transport-agent]  4.97-8
ii  file                                       1:5.45-3
ii  gnupg                                      2.2.43-7
ii  pgpgpg [pgp]                               0.13-12
pn  python3-urwid                              <none>
pn  reportbug-gtk                              <none>
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.9.3
ii  file               1:5.45-3
ii  python3            3.11.8-1
ii  python3-apt        2.9.0
ii  python3-debian     0.1.49
ii  python3-debianbts  4.1.1
ii  python3-requests   2.31.0+dfsg-2
ii  sensible-utils     0.0.22

python3-reportbug suggests no packages.

-- no debconf information

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to