From: sasilver Date: Thu, 10 Jul 2008 09:06:47 +0000 (+0000) Subject: Allow inkex.errormsg() to handle non-ASCII characters. Fixes bug 246931. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d372c7ae95b198757df66d26e1a6cb2e76370404;p=inkscape.git Allow inkex.errormsg() to handle non-ASCII characters. Fixes bug 246931. --- 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':