Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381581 - app-portage/gentoolkit-9999: revdep-rebuild unicode error
Summary: app-portage/gentoolkit-9999: revdep-rebuild unicode error
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 15:59 UTC by Paul Varner (RETIRED)
Modified: 2012-11-09 14:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/db/pkg/app-misc/ca-certificates-20110502-r1/CONTENTS (CONTENTS,19.12 KB, text/plain)
2011-09-02 15:59 UTC, Paul Varner (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2011-09-02 15:59:50 UTC
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)
Comment 1 Zac Medico gentoo-dev 2011-09-02 19:58:05 UTC
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
Comment 2 Paul Varner (RETIRED) gentoo-dev 2012-11-09 14:26:54 UTC
Fixed with the following commit:
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=800b1f431fe35dcb9ed76e7170f6853664196e09