projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54669f5
)
Open repo_name in text mode (unicode).
author
Zac Medico
<zmedico@gentoo.org>
Fri, 7 Aug 2009 21:03:11 +0000
(21:03 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 7 Aug 2009 21:03:11 +0000
(21:03 -0000)
svn path=/main/trunk/; revision=13947
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index 9f427a14825c8d3df19f44e8fcc3c246931e964e..9f36af5699b9cae9d589e6d880626e0102bf429a 100644
(file)
--- a/
pym/portage/dbapi/porttree.py
+++ b/
pym/portage/dbapi/porttree.py
@@
-167,7
+167,8
@@
class portdbapi(dbapi):
continue
repo_name_path = os.path.join(path, REPO_NAME_LOC)
try:
- repo_name = open(repo_name_path, 'r').readline().strip()
+ repo_name = codecs.open(repo_name_path, mode='r',
+ encoding='utf_8', errors='replace').readline().strip()
except EnvironmentError:
# warn about missing repo_name at some other time, since we
# don't want to see a warning every time the portage module is