Summary: | =sys-apps/portage-2.2.22 - ascii codec traceback on dohtml on paths containig uncode charcters | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Vadim A. Misbakh-Soloviov (mva) <mva> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | 2.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Vadim A. Misbakh-Soloviov (mva)
2015-09-29 18:27:48 UTC
Created attachment 413282 [details]
emerge --info
We can use portage.os to transparently handle encoding and decoding in most places. With python3, we should use surrogateescape to encode command arguments (like install.py does). We should die if any arguments or listdir results do not decode as valid UTF-8. There's a patch in the following branch: https://github.com/zmedico/portage/tree/bug_561846 You can test it like this: echo '=sys-apps/portage-9999 **' >> /etc/portage/package.accept_keywords portage_LIVE_BRANCH=bug_561846 \ portage_LIVE_REPO=https://github.com/zmedico/portage.git \ emerge -1 =sys-apps/portage-9999 I've posted it for review here: https://archives.gentoo.org/gentoo-portage-dev/message/f6a3f74300789f3eeb8371352b5da48d This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c788a835067c5ffe8859f38078b390f06a223f5d Fixed in 2.2.23. |