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 301809 Details for
Bug 441659
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 7: ordinal not in range(128)
[?]
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]
fix UnicodeEncodeError in yum
fix_unicode_error_yum.patch (text/plain), 1.32 KB, created by
HK Kim
on 2008-04-09 14:05:51 UTC
(
hide
)
Description:
fix UnicodeEncodeError in yum
Filename:
MIME Type:
Creator:
HK Kim
Created:
2008-04-09 14:05:51 UTC
Size:
1.32 KB
patch
obsolete
>diff -Nau /usr/lib/python2.5/site-packages/yum.org/__init__.py /usr/lib/python2.5/site-packages/yum/__init__.py >--- /usr/lib/python2.5/site-packages/yum.org/__init__.py 2008-04-09 21:41:12.000000000 +0900 >+++ /usr/lib/python2.5/site-packages/yum/__init__.py 2008-04-09 22:56:38.000000000 +0900 >@@ -1517,7 +1517,7 @@ > for s in real_crit_lower: > for field in fields: > value = to_unicode(getattr(po, field)) >- if value and value.lower().find(s) != -1: >+ if value and value.lower().find(to_unicode(s)) != -1: > tmpvalues.append(value) > tmpkeys.add(rcl2c[s]) > >diff -Nau /usr/lib/python2.5/site-packages/yum.org/rpmsack.py /usr/lib/python2.5/site-packages/yum/rpmsack.py >--- /usr/lib/python2.5/site-packages/yum.org/rpmsack.py 2008-04-08 13:38:17.000000000 +0900 >+++ /usr/lib/python2.5/site-packages/yum/rpmsack.py 2008-04-09 22:40:02.000000000 +0900 >@@ -299,7 +299,7 @@ > for s in searchstrings: > for field in fields: > value = to_unicode(hdr[field]) >- if value and value.lower().find(s) != -1: >+ if value and value.lower().find(to_unicode(s)) != -1: > count += 1 > break > return count
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 441659
:
301808
|
301809
|
301832
|
301834
|
301835