[PATCH] Decode patch from UTF-8 while parsing from stdin

martin f. krafft madduck at madduck.net
Fri Feb 11 01:43:11 EST 2011


also sprach Guilherme Salgado <guilherme.salgado at linaro.org> [2011.02.10.1302 +0100]:
> 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.

True, but I am sure there was another reason. I cannot remember it
though.

Has someone tried submitting a patch with Unicode? Maybe it does
work now…

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"...the prevailing catholic odor - incense, wax, centuries of mild
 bleating from the lips of the flock."
                                -- thomas pynchon, gravity's rainbow
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1124 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20110210/50360263/attachment.pgp>


More information about the Patchwork mailing list