projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085daa6
)
Properly encode metadata strings as utf-8 in order to avoid "UnicodeEncodeError:...
author
Zac Medico
<zmedico@gentoo.org>
Sun, 7 May 2006 19:01:58 +0000
(19:01 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 7 May 2006 19:01:58 +0000
(19:01 -0000)
given a unicode string.
svn path=/main/trunk/; revision=3328
pym/cache/flat_hash.py
patch
|
blob
|
history
diff --git
a/pym/cache/flat_hash.py
b/pym/cache/flat_hash.py
index dfa7ad0c7ee3f59638496c8998b76a688081e84f..b255b56e255784395dbe090f13c711a5d0ada01a 100644
(file)
--- a/
pym/cache/flat_hash.py
+++ b/
pym/cache/flat_hash.py
@@
-82,7
+82,7
@@
class database(fs_template.FsBased):
for k, v in values.items():
if k != "_mtime_" and (k == "_eclasses_" or k in self._known_keys):
- myf.write(
"%s=%s\n" % (k, v
))
+ myf.write(
("%s=%s\n" % (k, v)).encode("utf-8"
))
myf.close()
self._ensure_access(fp, mtime=values["_mtime_"])