Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 518508 Details for
Bug 646880
sys-process/htop-2.1.0 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 457: ordinal not in range(128)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
python3 support
htop-2.1.0-MakeHeader-python3.patch (text/plain), 767 bytes, created by
Andrey Volkov
on 2018-02-07 20:48:44 UTC
(
hide
)
Description:
python3 support
Filename:
MIME Type:
Creator:
Andrey Volkov
Created:
2018-02-07 20:48:44 UTC
Size:
767 bytes
patch
obsolete
>diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py >index 4841bda..6d01f42 100755 >--- a/scripts/MakeHeader.py >+++ b/scripts/MakeHeader.py >@@ -1,5 +1,5 @@ > #!/usr/bin/env python >-import os, sys, string >+import os, sys, string, io > try: > from cStringIO import StringIO > except ImportError: >@@ -16,7 +16,7 @@ SKIPONE=4 > state = ANY > static = 0 > >-file = open(sys.argv[1]) >+file = io.open(sys.argv[1], "r", errors="ignore") > name = sys.argv[1][:-2] > > out = StringIO() >@@ -94,7 +94,7 @@ out.write( "#endif\n" ) > # This prevents a lot of recompilation during development > out.seek(0) > try: >- with open(name + ".h", "r") as orig: >+ with io.open(name + ".h", "r", errors="ignore") as orig: > origcontents = orig.readlines() > except: > origcontents = ""
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 646880
:
518338
|
518366
| 518508