Bug 1094301

Summary: [abrt] dnf: output.py:1089:matchcallback:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Krzesimir Nowak <qdlacz>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, cunio, fedora, packaging-team-maint, pnemade, rholy, samtygier, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d9dff6221b079bf38c63e94d6abf0023fcd38b7f
Whiteboard: abrt_hash:ebc0255d9d0b3bafabc4c651bc619662ba01c6ac
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-06 05:00:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Krzesimir Nowak 2014-05-05 12:58:45 UTC
Description of problem:
Reproducible by calling one of the following:
dnf search exim
dnf search perl

Version-Release number of selected component:
dnf-0.5.1-1.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python /bin/dnf search perl template
executable:     /bin/dnf
kernel:         3.14.2-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
output.py:1089:matchcallback:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)

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 206, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 82, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 132, 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 18: ordinal not in range(128)

Local variables in innermost frame:
matchfor: ['perl', 'template']
verbose: None
self: <dnf.cli.output.Output object at 0x7f17f1210d50>
values: set(['perl-Devel-PatchPerl', "Patch perl source \xc3\xa0 la Devel::PPPort's buildperl.pl"])
msg: u'perl-Devel-PatchPerl.noarch : '
highlight: None
po: <hawkey.Package object id 27723, perl-Devel-PatchPerl-1.00-1.fc20.noarch, fedora>

Comment 1 Krzesimir Nowak 2014-05-05 12:58:50 UTC
Created attachment 892529 [details]
File: backtrace

Comment 2 Krzesimir Nowak 2014-05-05 12:58:52 UTC
Created attachment 892530 [details]
File: environ

Comment 3 Parag Nemade 2014-05-05 15:05:23 UTC
I too tested new update in f20 and found this bug exists.

Comment 4 Parag Nemade 2014-05-05 16:24:15 UTC
another observation if I just execute
dnf search perl 
or
dnf search python

then something is truncating summary of packages and then above traceback.

But if I execute following no traceback and summary displayed fully.
dnf search haskell
or
dnf search gtk3

Comment 5 Ales Kozumplik 2014-05-06 05:00:18 UTC
Thanks for reporting, looks like a duplicate of bug 1093887.

*** This bug has been marked as a duplicate of bug 1093887 ***