Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 325452 Details for
Bug 436736
sys-apps/elfix: revdep-pax fails with UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128) when an utf-8 locale is set
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix unicode decode for any file system encoding
fix-unicode-decode.patch (text/plain), 622 bytes, created by
Anthony Basile
on 2012-10-01 08:48:21 UTC
(
hide
)
Description:
fix unicode decode for any file system encoding
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2012-10-01 08:48:21 UTC
Size:
622 bytes
patch
obsolete
>diff --git a/scripts/revdep-pax b/scripts/revdep-pax >index 9a990a2..fc55ed3 100755 >--- a/scripts/revdep-pax >+++ b/scripts/revdep-pax >@@ -18,7 +18,12 @@ def get_input(prompt): > > def get_ldd_linkings(binary): > ldd_output = subprocess.Popen(['/usr/bin/ldd', binary], stdout=subprocess.PIPE, stderr=subprocess.PIPE) >- ldd_lines = ldd_output.stdout.read().decode().split('\n') >+ >+ fse = sys.getfilesystemencoding() >+ if sys.hexversion > 0x03000000: >+ ldd_lines = ldd_output.stdout.read().decode(fse,'surrogateescape').split('\n') >+ else: >+ ldd_lines = ldd_output.stdout.read().split('\n') > > linkings = [] > mappings = {}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 436736
: 325452