From befc434ebf928636bf643acdb8d9b486b210b897 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Thu, 16 Feb 2017 12:01:48 +0100 Subject: [PATCH] Fix error when trying to print unicode strings --- mx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mx.py b/mx.py index 728d4e59..f6cbb0d3 100755 --- a/mx.py +++ b/mx.py @@ -9530,6 +9530,8 @@ def log_error(msg=None): if msg is None: print >> sys.stderr else: + if type(msg) is unicode: + msg = msg.encode('utf-8') print >> sys.stderr, colorize(str(msg), stream=sys.stderr) def expand_project_in_class_path_arg(cpArg):