Created attachment 285361 [details] /var/db/pkg/app-misc/ca-certificates-20110502-r1/CONTENTS !! Failed to read /var/db/pkg/app-misc/ca-certificates-20110502-r1/CONTENTS Original exception was: 'ascii' codec can't decode byte 0xc5 in position 2405: ordinal not in range(128)
In portage we hardcode utf_8 encoding for the content of all files in /var/db/pkg, which is consistent with gentoo guidelines for encoding of ebuilds, ChangeLogs, etc: http://devmanual.gentoo.org/ebuild-writing/file-format/index.html#character-set In portage we used to use codecs.open() for these files, but recently migrated to io.open(): http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8cc8d12a674ab6271183e5c35202263a36497279
Fixed with the following commit: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=800b1f431fe35dcb9ed76e7170f6853664196e09