Always pass encodings='utf_8' to codecs.open(), since otherwise it can
authorZac Medico <zmedico@gentoo.org>
Mon, 20 Jul 2009 23:50:20 +0000 (23:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 20 Jul 2009 23:50:20 +0000 (23:50 -0000)
commit581381acffbedfdc553b9643d47924bf44e32238
tree878d3777e6b79c5e0712e38f63505dc6e7079f21
parent8c70715b17035030d5729972e01b2c2d3d842967
Always pass encodings='utf_8' to codecs.open(), since otherwise it can
return non-unicode strings (at least in some cases, observed with
python-2.6.2). Don't use unicode in portage.util.getconfig() for now,
since shlex doesn't seem to support it (spurious \0 characters). If we
use unicode for config variables, it breaks shlex.split() calls on those
variables due to the same issue (spurious \0 characters).

svn path=/main/trunk/; revision=13845
bin/repoman
pym/portage/__init__.py
pym/portage/env/loaders.py
pym/portage/output.py
pym/portage/util.py