Hi,

This bug was related to a problem in the reportbug/submit.py file with
getoutput function from the commands Python module which doesn't seem to
manage a utf-8 string with unusual caracters.
Here is a simple patch to use the more up-to-date Popen function from
subprocess module to get rid of this problem.

Regards,
Carl Chenet
29a30
> from subprocess import Popen, STDOUT, PIPE
176,178c177,181
<         info = commands.getoutput('file --mime --brief' +
<                                    commands.mkarg(attachment) +
<                                   ' 2>/dev/null')
---
>         #info = commands.getoutput('file --mime --brief' +
>         #                           commands.mkarg(attachment) +
>         #                          ' 2>/dev/null')
>         info = Popen(['file','--mime', '--brief', attachment],
>             stdout=PIPE, stderr=STDOUT).communicate()[0]

Reply via email to