# HG changeset patch # User Goffi # Date 1499606431 -7200 # Node ID f4a0723042ee1b3c47a5b78e74bd873bb1b81a1a # Parent e715a29c4f9b6e83f6f2e264a1d2da73c42c0104 jp (pubsub/search): fixed encoding for stdin in external commands diff -r e715a29c4f9b -r f4a0723042ee frontends/src/jp/cmd_pubsub.py --- a/frontends/src/jp/cmd_pubsub.py Sat Jul 08 23:21:01 2017 +0200 +++ b/frontends/src/jp/cmd_pubsub.py Sun Jul 09 15:20:31 2017 +0200 @@ -702,7 +702,7 @@ ret = subprocess.call(cmd_args) else: p = subprocess.Popen(cmd_args, stdin=subprocess.PIPE) - p.communicate(item) + p.communicate(item.encode('utf-8')) ret = p.wait() if ret != 0: self.disp(A.color(C.A_FAILURE, _(u"executed command failed with exit code {code}").format(code=ret)))