From 5013be0b2b4d6cdf530d1f324ad8e74b112b2544 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Aug 2009 19:27:24 +0000 Subject: [PATCH] Bug #280269 - Decode commandline arguments to unicode when necessary. svn path=/main/trunk/; revision=13904 --- pym/_emerge/main.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.26.2