From 422ec8e075464bd9fe62d614025f8341719879b4 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Fri, 16 Oct 2009 17:20:17 -0400 Subject: [PATCH] fix utf8 pipe issue --HG-- branch : pmacs2 --- application.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application.py b/application.py index 873820d..3282f4d 100755 --- a/application.py +++ b/application.py @@ -726,7 +726,8 @@ class Application(object): # running external programs def run_pipe(self, args, b, name='*Output*', switch=True, modename=None): pipe = Popen(args=args, stdin=PIPE, stdout=PIPE, stderr=STDOUT) - pipe.stdin.write(b.make_string()) + data = b.make_string().encode('utf-8') + pipe.stdin.write(data) pipe.stdin.close() output = pipe.stdout.read() status = pipe.wait()