From 89f602d504cb8c2d51e13c8503f098749a09e001 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 25 Jun 2010 19:29:52 +0200 Subject: [PATCH] Bug #325505: Fix UnicodeEncodeError in _emerge.actions.action_info(). --- pym/_emerge/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index d5035cca9..9e2c88fe0 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1296,7 +1296,10 @@ def action_info(settings, trees, myopts, myfiles): for x in myvars: if x in settings: if x != "USE": - print('%s="%s"' % (x, settings[x])) + try: + print('%s="%s"' % (x, settings[x])) + except UnicodeEncodeError: + print('%s=' % (x, repr(settings[x]))) else: use = set(settings["USE"].split()) for varname in use_expand: -- 2.26.2