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

Jeremy Kerr jk at ozlabs.org
Mon Jan 25 09:01:50 EST 2010


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" % fname
>      except:

Thanks for that, applied & pushed.


Jeremy 


More information about the Patchwork mailing list