Index: pym/_emerge/depgraph.py =================================================================== --- pym/_emerge/depgraph.py (revision 13905) +++ pym/_emerge/depgraph.py (working copy) @@ -5111,6 +5111,11 @@ pass print "- "+cpv+" (masked by: "+", ".join(mreasons)+")" + + if sys.hexversion < 0x3000000 and isinstance(comment, unicode): + # avoid potential UnicodeEncodeError + comment = comment.encode('utf_8', 'replace') + if comment and comment not in shown_comments: print filename+":" print comment