From 15689a51583a0639d57dac697ec3c35d1773687a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 4 Nov 2012 06:50:36 -0500 Subject: [PATCH] zephyr_mirror: Encode the content as utf-8 before sending to zwrite. (imported from commit 8bc578701a99f98eb5cc3e179fef696514da0066) --- bots/zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index d3d59b4..a984739 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -388,7 +388,7 @@ def forward_to_zephyr(message): p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) - p.communicate(input=wrapped_content) + p.communicate(input=wrapped_content.encode("utf-8")) def maybe_forward_to_zephyr(message): if (message["sender_email"] == options.user + "@mit.edu"):