On Wednesday 06 February 2013 12:00 AM, Dmitry Shachnev wrote:
> This patch *should* fix the bug:
>
> --- apport/crashdb_impl/debian.py     2013-01-04 10:39:47 +0000
> +++ apport/crashdb_impl/debian.py     2013-02-05 18:18:45 +0000
> @@ -88,7 +88,7 @@
>  
>          temp.file.seek(0)
>  
> -        msg = MIMEText(temp.file.read())
> +        msg = MIMEText(temp.file.read().decode('UTF-8'))
>          msg['Subject'] = report['Title']
>          msg['From'] = self.options['sender']
>          msg['To'] = self.options['recipient']
>
> (That is needed because *TemporaryFile classes use binary mode by default).
>
> After applying it, apport-cli just silently exits, but that's probably
> another bug. If the fix works for you, let me know, and I'll submit it
> upstream.


Thanks Dmitry.  I don't have access to my machine right now. If you have
tested, and it works, please submit it to Martin. He will anyways review
it before committing.



-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to