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 155784 Details for
Bug 239744
repoquery: dies on non-unicode filenames
[?]
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]
Force locale preferred encoding on a non-tty stdout instead of ascii
repoquery-stdout-locale.patch (text/plain), 572 bytes, created by
Panu Matilainen
on 2007-05-31 07:30:01 UTC
(
hide
)
Description:
Force locale preferred encoding on a non-tty stdout instead of ascii
Filename:
MIME Type:
Creator:
Panu Matilainen
Created:
2007-05-31 07:30:01 UTC
Size:
572 bytes
patch
obsolete
>Index: repoquery.py >=================================================================== >RCS file: /home/groups/yum/cvs/yum-utils/repoquery.py,v >retrieving revision 1.45 >diff -u -r1.45 repoquery.py >--- repoquery.py 23 May 2007 14:17:38 -0000 1.45 >+++ repoquery.py 31 May 2007 07:14:51 -0000 >@@ -696,6 +696,10 @@ > repoq.logger.error( e) > sys.exit(1) > >+ if not sys.stdout.isatty(): >+ import codecs, locale >+ sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout) >+ > repoq.runQuery(regexs) > > if __name__ == "__main__":
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 239744
: 155784