Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 223571 Details for
Bug 309401
sys-apps/portage[python3] repoman chokes on hollow's name
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use UTF-8 encoding, to avoid UnicodeDecodeError with python3
python3_unicode.patch (text/plain), 850 bytes, created by
Zac Medico
on 2010-03-14 23:46:05 UTC
(
hide
)
Description:
use UTF-8 encoding, to avoid UnicodeDecodeError with python3
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2010-03-14 23:46:05 UTC
Size:
850 bytes
patch
obsolete
>Index: bin/repoman >=================================================================== >--- bin/repoman (revision 15827) >+++ bin/repoman (revision 15828) >@@ -2314,7 +2314,9 @@ > from portage.util import write_atomic > cvs_header = re.compile(r'^#\s*\$Header.*\$$') > for x in myheaders: >- f = open(x) >+ f = codecs.open(_unicode_encode(x, >+ encoding=_encodings['fs'], errors='strict'), >+ mode='r', encoding=_encodings['repo.content'], errors='strict') > mylines = f.readlines() > f.close() > modified = False >@@ -2323,7 +2325,8 @@ > mylines[i] = line.replace("/Attic/", "/") > modified = True > if modified: >- write_atomic(x, "".join(mylines)) >+ write_atomic(x, "".join(mylines), >+ encoding=_encodings['repo.content'], errors='strict') > > manifest_commit_required = True > if vcs in ('cvs', 'svn') and (myupdates or myremoved):
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 309401
:
223539
| 223571