1 |
Author: zmedico |
2 |
Date: 2009-08-04 19:20:34 +0000 (Tue, 04 Aug 2009) |
3 |
New Revision: 13903 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/sets/files.py |
7 |
Log: |
8 |
Bug #280269 - Fix StaticFileSet.multiBuilder() to handle unicode filenames. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/sets/files.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/sets/files.py 2009-08-04 18:45:48 UTC (rev 13902) |
14 |
+++ main/trunk/pym/portage/sets/files.py 2009-08-04 19:20:34 UTC (rev 13903) |
15 |
@@ -132,6 +132,9 @@ |
16 |
if d[:1] == '.': |
17 |
dirs.remove(d) |
18 |
for filename in files: |
19 |
+ if not isinstance(filename, unicode): |
20 |
+ filename = unicode(filename, |
21 |
+ encoding='utf_8', errors='replace') |
22 |
if filename[:1] == '.': |
23 |
continue |
24 |
if filename.endswith(".metadata"): |