[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
Has someone tried submitting a patch with Unicode? Maybe it does
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...
Size: 1124 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
More information about the Patchwork