[Reportbug-maint] Bug#491869: reportbug: Crash when attaching a file with a non-ascii character in filename

Sam Morris sam at robots.org.uk
Tue Jul 22 14:58:09 UTC 2008


Package: reportbug
Version: 3.42
Severity: important

Annoyingly, I lost the entire bug report when trying to attach such a
file!

Submit this report on xulrunner-1.9 (e to edit) [Y|n|a|c|e|i|l|m|p|q|?]? a
Choose a file to attach: Desktop/Screenshot-The Flip Video Store - Introducing Mino. Now playing: You™.png
Report will be sent to "Debian Bug Tracking System" <submit at bugs.debian.org>
Attachments:
 Desktop/Screenshot-Planet GNOME.png
 Desktop/Screenshot-The Flip Video Store - Introducing Mino. Now playing: You™.png
Submit this report on xulrunner-1.9 (e to edit) [Y|n|a|c|e|i|l|m|p|q|?]? y
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1820, in <module>
    main()
  File "/usr/bin/reportbug", line 847, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1812, in user_interface
    smtphost, self.options.smtpuser, self.options.smtppasswd, self.options.paranoid)
  File "/usr/share/reportbug/reportbuglib/reportbug_submit.py", line 258, in send_report
    (message, failed) = mime_attach(body, attachments, charset, body_charset)
  File "/usr/share/reportbug/reportbuglib/reportbug_submit.py", line 181, in mime_attach
    ' 2>/dev/null')
  File "/usr/lib/python2.5/commands.py", line 44, in getoutput
    return getstatusoutput(cmd)[1]
  File "/usr/lib/python2.5/commands.py", line 53, in getstatusoutput
    pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 99: ordinal not in range(128)


-- Package-specific info:
** Environment settings:
EDITOR="gvim"

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages reportbug depends on:
ii  apt                           0.7.14+b1  Advanced front-end for dpkg
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-central                0.6.8      register and build utility for Pyt

reportbug recommends no packages.

-- no debconf information





More information about the Reportbug-maint mailing list