Bug 483157 - repoquery --changelog UnicodeDecodeError
Summary: repoquery --changelog UnicodeDecodeError
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-29 21:19 UTC by Ville-Pekka Vainio
Modified: 2014-01-21 23:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-03 18:10:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ville-Pekka Vainio 2009-01-29 21:19:03 UTC
Description of problem:
Repoquery throws a UnicodeDecodeError with the --changelog switch. For example:

repoquery --changelog NetworkManager-pptp
Traceback (most recent call last):
  File "/usr/bin/repoquery", line 857, in <module>
    main(sys.argv)
  File "/usr/bin/repoquery", line 853, in main
    repoq.runQuery(regexs)
  File "/usr/bin/repoquery", line 501, in runQuery
    print pkg.doQuery(oper)
  File "/usr/lib/python2.5/codecs.py", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 10: ordinal not in range(128)

This doesn't seem to be limited to that specific package, I also tested with the kernel package with similar results.

Version-Release number of selected component (if applicable):
yum-utils-1.1.19-1.fc10.noarch

How reproducible:
Always

Steps to Reproduce:
1. Do a "repoquery --changelog" query
  
Actual results:
UnicodeDecodeError

Expected results:
Repoquery should show the changelog

Comment 1 seth vidal 2009-02-27 20:18:10 UTC
LANG set to fi_FI.utf8, I assume?

replicate with:

LANG=fi_FI.utf8 repoquery --changelog NetworkManager-pptp

Comment 2 Ville-Pekka Vainio 2009-02-27 20:26:05 UTC
(In reply to comment #1)
> LANG set to fi_FI.utf8, I assume?

Yes.

> LANG=fi_FI.utf8 repoquery --changelog NetworkManager-pptp

Same error, but works with LANG=C.

Comment 3 James Antill 2009-02-27 22:35:58 UTC
Reproducible on F10 too, fixed upstream

Comment 4 Ville-Pekka Vainio 2009-07-03 18:10:43 UTC
Works on F11 now.


Note You need to log in before you can comment on or make changes to this bug.