Summary: | Emerge broken. Stops with UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in portage/util.py | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Oliver Maurhart <oliver.maurhart> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | esigra, jrmalaq |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.gentooforum.de/post/123212/unicodedecodeerror-ascii.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to /usr/bin/emerge to FORCE latin-1 encoding |
Description
Oliver Maurhart
2009-08-21 11:51:33 UTC
I managed to get around this bug by applying a patch to /usr/bin/emerge (!!!) --- /usr/bin/emerge.org 2009-08-21 13:43:46.000000000 +0200 +++ /usr/bin/emerge 2009-08-21 13:40:25.000000000 +0200 @@ -4,6 +4,9 @@ # $Id: emerge 13895 2009-08-04 16:05:50Z zmedico $ import sys +reload(sys) +sys.setdefaultencoding('latin-1') + # This block ensures that ^C interrupts are handled quietly. try: import signal This one hammers the encoding rules to "latin-1" which works then. BUT: This is an awfull, nasty, ugly hack! sys.setdefaultencoding is harmful, isn't it? Created attachment 201858 [details]
Patch to /usr/bin/emerge to FORCE latin-1 encoding
Added path described in previous post.
*** This bug has been marked as a duplicate of bug 281199 *** |