Red Hat Bugzilla – Bug 1269881
dnf search backtrace (UnicodeEncodeError)
Last modified: 2016-08-01 06:03:02 EDT
Description of problem:
See steps to reproduce.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. # dnf search auto
<tons of packages listed>
Traceback (most recent call last):
File "/bin/dnf", line 35, in <module>
File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 198, in user_main
errcode = main(args)
File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
return _main(base, args)
File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 136, in _main
File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1091, in run
File "/usr/lib/python3.4/site-packages/dnf/cli/commands/search.py", line 106, in run
File "/usr/lib/python3.4/site-packages/dnf/cli/commands/search.py", line 81, in _search
File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 784, in matchcallback
File "/usr/lib/python3.4/site-packages/dnf/i18n.py", line 44, in write
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 52: ordinal not in range(128)
Thanks for the report.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.
More information and reason for this action is here:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Works for me.
Should be fixed in dnf-1.1.9 (Take a look at this commit https://github.com/rpm-software-management/dnf/commit/93159e360f0b6150e598bba783e22ca113201a40)
In case reopen this bug and provide more info.