On Thu, 2011-02-10 at 06:33 +0100, martin f. krafft wrote:
> also sprach Jeremy Kerr <[email protected]> [2011.02.10.0418 +0100]:
> > I'm also having trouble finding where parse_patch will be passed
> > anything but unicode.
> 
> Exactly; hence it should treat the text as Unicode and decode it
> before manipulating it.

If indeed parse_patch() will only be passed unicode objects, having it
call text.decode('utf8') is wrong because that will cause an implicit
encoding of text using the default codec (ascii), which will fail if
text has any non-ascii characters.


-- 
Guilherme Salgado <https://launchpad.net/~salgado>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to