Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 710720 Details for
Bug 922149
platform.platform() can throw Unicode error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Use surrogateescape when reading from /etc/fedora-release
00175-platform-unicode.patch (text/plain), 524 bytes, created by
Toshio Ernie Kuratomi
on 2013-03-15 15:13:14 UTC
(
hide
)
Description:
Use surrogateescape when reading from /etc/fedora-release
Filename:
MIME Type:
Creator:
Toshio Ernie Kuratomi
Created:
2013-03-15 15:13:14 UTC
Size:
524 bytes
patch
obsolete
>Index: Python-3.3.0/Lib/platform.py >=================================================================== >--- Python-3.3.0.orig/Lib/platform.py >+++ Python-3.3.0/Lib/platform.py >@@ -331,7 +331,7 @@ def linux_distribution(distname='', vers > return _dist_try_harder(distname,version,id) > > # Read the first line >- with open('/etc/'+file, 'r') as f: >+ with open('/etc/'+file, 'r', errors='surrogateescape') as f: > firstline = f.readline() > _distname, _version, _id = _parse_release_file(firstline) >
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 922149
: 710720