Re: [PATCH] pwclient get: fix for handling messages encoded in UTF-8

2010-01-24 Thread Jeremy Kerr
Hi Paul, > --- a/apps/patchwork/bin/pwclient > +++ b/apps/patchwork/bin/pwclient > @@ -234,7 +234,7 @@ def action_get(rpc, patch_id): > sys.exit(1) > > try: > -f.write(s) > +f.write(unicode(s).encode("utf-8")) > f.close() > print "Saved patch to %s"

[PATCH] pwclient get: fix for handling messages encoded in UTF-8

2010-01-24 Thread Paul Menzel
Trying `pwclient get` with a message containing UTF-8 characters you would get the following error. $ python -v pwclient get ID […] # trying /usr/lib/python2.5/encodings/ascii.so # trying /usr/lib/python2.5/encodings/asciimodule.so # trying /usr/lib/python2.5/encodings/ascii.p