summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 34b6ef1c5..0d14107cb 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -747,6 +747,10 @@ def parse_opts(tmpcmdline, silent=False):
if myaction is None and myoptions.deselect is True:
myaction = 'deselect'
+ if myargs and not isinstance(myargs[0], unicode):
+ for i in xrange(len(myargs)):
+ myargs[i] = unicode(myargs[i], encoding='utf_8', errors='replace')
+
myfiles += myargs
return myaction, myopts, myfiles