From db484dfe75fa0169a6a7e42d35827a63ee2fdd20 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Aug 2009 19:20:34 +0000 Subject: [PATCH] Bug #280269 - Fix StaticFileSet.multiBuilder() to handle unicode filenames. svn path=/main/trunk/; revision=13903 --- pym/portage/sets/files.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py index aa4d6aac9..f4ecbae7c 100644 --- a/pym/portage/sets/files.py +++ b/pym/portage/sets/files.py @@ -132,6 +132,9 @@ class StaticFileSet(EditablePackageSet): if d[:1] == '.': dirs.remove(d) for filename in files: + if not isinstance(filename, unicode): + filename = unicode(filename, + encoding='utf_8', errors='replace') if filename[:1] == '.': continue if filename.endswith(".metadata"): -- 2.26.2