Bug 315491 - crystal-project crashes repoquery
Summary: crystal-project crashes repoquery
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 8
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL: http://www.redhat.com/archives/fedora...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-02 15:30 UTC by Curtis Doty
Modified: 2008-06-03 11:09 UTC (History)
2 users (show)

Fixed In Version: 1.1.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-03 11:09:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Curtis Doty 2007-10-02 15:30:59 UTC
$ repoquery -ql crystal-project
Traceback (most recent call last):
  File "/usr/bin/repoquery", line 806, in <module>
    main(sys.argv)
  File "/usr/bin/repoquery", line 803, in main
    repoq.runQuery(regexs)
  File "/usr/bin/repoquery", line 473, in runQuery
    print pkg.doQuery(oper)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\uf003' in position
25663: ordinal not in range(256)

Not sure how Bug 239744 got closed.

Comment 1 Seth Vidal 2007-12-07 04:40:08 UTC
Rock - looks like either crystal-project changed or we fixed repoquery in f7 and f8.

reopen if you see otherwise.

Comment 2 Curtis Doty 2007-12-07 15:48:28 UTC
Problem still occurs here. Tested against last night's push on both f7 and f8 again.

Comment 3 Seth Vidal 2007-12-07 16:16:36 UTC
what's your lang set to?

Comment 4 Curtis Doty 2007-12-07 16:23:22 UTC
Aha!

$ LANG=C repoquery -ql crystal-project >/dev/null ; echo $?    
Traceback (most recent call last):
  File "/usr/bin/repoquery", line 808, in <module>
    main(sys.argv)
  File "/usr/bin/repoquery", line 805, in main
    repoq.runQuery(regexs)
  File "/usr/bin/repoquery", line 473, in runQuery
    print pkg.doQuery(oper)
  File "/usr/lib/python2.5/codecs.py", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'ascii' codec can't encode character u'\uf003' in position
25663: ordinal not in range(128)
1

$ LANG=en_US repoquery -ql crystal-project >/dev/null ; echo $? 
Traceback (most recent call last):
  File "/usr/bin/repoquery", line 808, in <module>
    main(sys.argv)
  File "/usr/bin/repoquery", line 805, in main
    repoq.runQuery(regexs)
  File "/usr/bin/repoquery", line 473, in runQuery
    print pkg.doQuery(oper)
  File "/usr/lib/python2.5/codecs.py", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\uf003' in position
25663: ordinal not in range(256)
1

$ LANG=en_US.UTF-8 repoquery -ql crystal-project >/dev/null ; echo $?
0


Comment 5 Tim Lauridsen 2008-06-02 11:58:47 UTC
I could reproduce the error and i have fixed it upstream.

http://devel.linux.duke.edu/gitweb/?p=yum-utils.git;a=blob_plain;f=repoquery.py;hb=c49110c6819716526b1902075a2304bb34c9f40d


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