From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 25 Jun 2010 17:29:52 +0000 (+0200) Subject: Bug #325505: Fix UnicodeEncodeError in _emerge.actions.action_info(). X-Git-Tag: v2.2_rc68~543 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89f602d504cb8c2d51e13c8503f098749a09e001;p=portage.git Bug #325505: Fix UnicodeEncodeError in _emerge.actions.action_info(). --- 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: