Bug 1093887

Summary: Wrong codec used for search results
Product: [Fedora] Fedora Reporter: Ben Boeckel <fedora>
Component: hawkeyAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, cunio, jsilhan, msrb, packaging-team-maint, pnemade, qdlacz, rholy, tim.lauridsen, vfeenstr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-0.0.8-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-31 23:59:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ben Boeckel 2014-05-03 02:46:21 UTC
Looks like dnf is using ascii for search results:

# dnf search gnome socket
...
gnome-getting-started-docs-de.noarch : German translations for gnome-getting-started-docs videos
gnome-getting-started-docs-pl.noarch : Polish translations for gnome-getting-started-docs videos
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 246, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 76, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 125, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1164, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 515, in run
    return self.cli.search(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1225, in search
    args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1089, in matchcallback
    msg = self.fmtKeyValFill(msg, unicode(po.summary) or "")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

Comment 1 Ben Boeckel 2014-05-03 02:46:41 UTC
Oops, forgot this: dnf-0.5.0-1.fc21.noarch

Comment 2 Michal Srb 2014-05-04 11:22:33 UTC
I can confirm this bug:

# dnf search python-dslib

from python-dslib.spec:

"Summary: A Python library for accessing Czech Databox (Datové schránky)"

Comment 3 Ales Kozumplik 2014-05-05 05:46:24 UTC
Thanks for reporting, moving to Jan.

Comment 4 Ales Kozumplik 2014-05-06 05:00:18 UTC
*** Bug 1094301 has been marked as a duplicate of this bug. ***

Comment 5 Honza Silhan 2014-05-09 12:37:46 UTC
Fixed in the upstream.

Comment 6 Ales Kozumplik 2014-05-12 07:31:27 UTC
*** Bug 1096580 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2014-05-28 12:11:18 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20

Comment 8 Fedora Update System 2014-05-28 23:51:19 UTC
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20
then log in and leave karma (feedback).

Comment 9 Ales Kozumplik 2014-05-29 06:32:34 UTC
*** Bug 1102367 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2014-05-31 23:59:59 UTC
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.