From d372c7ae95b198757df66d26e1a6cb2e76370404 Mon Sep 17 00:00:00 2001 From: sasilver Date: Thu, 10 Jul 2008 09:06:47 +0000 Subject: [PATCH] Allow inkex.errormsg() to handle non-ASCII characters. Fixes bug 246931. --- share/extensions/inkex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 96dc7b7ae..01488880b 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -78,7 +78,7 @@ def errormsg(msg): ... inkex.errormsg(_("This extension requires two selected paths.")) """ - sys.stderr.write(str(msg) + "\n") + sys.stderr.write((msg + "\n").encode("UTF-8")) def check_inkbool(option, opt, value): if str(value).capitalize() == 'True': -- 2.30.2