From 3cc490216483c6c6245a74aa9646d8c7f03e0872 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 4 Sep 2012 08:28:03 +0800 Subject: pwclient: Pass input to git-am as a UTF-8 string .. to prevent ascii codec exceptions. Signed-off-by: Jeremy Kerr --- apps/patchwork/bin/pwclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/patchwork/bin/pwclient') diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 4c47b11..16ca337 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -269,7 +269,7 @@ def action_apply(rpc, patch_id, apply_cmd=None): s = rpc.patch_get_mbox(patch_id) if len(s) > 0: proc = subprocess.Popen(apply_cmd, stdin = subprocess.PIPE) - proc.communicate(s) + proc.communicate(unicode(s).encode('utf-8')) else: sys.stderr.write("Error: No patch content found\n") sys.exit(1) -- cgit v1.2.3