Bug 1244125

Summary: [abrt] dnf: gettext.py:222:ugettext:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Eric Li <ericljz>
Component: dnf-plugins-coreAssignee: Jakub Kadlčík <jkadlcik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, msuchy, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/64af178807ba38d233d47b5973b700aeab8516b0
Whiteboard: abrt_hash:ddd1c4c580108c28eae296bde152d50909c3ea00
Fixed In Version: dnf-plugins-core-0.1.10-1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-15 02:13:41 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: dso_list
none
File: environ none

Description Eric Li 2015-07-17 08:30:43 UTC
Version-Release number of selected component:
dnf-1.0.1-2.fc22

Additional info:
reporter:       libreport-2.6.0
cmdline:        /usr/bin/python -OO /usr/bin/dnf copr enable mosquito/myrepo
executable:     /usr/bin/dnf
kernel:         4.0.7-300.fc22.i686
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
gettext.py:222:ugettext:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/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 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1077, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/copr.py", line 116, in run
    Do you want to continue? [y/N]: """)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/copr.py", line 185, in _ask_user
    answer = _(answer)
  File "/usr/lib/python2.7/gettext.py", line 222, in ugettext
    return unicode(message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

Local variables in innermost frame:
message: '\xe6\x9c\xac\xe7\xaf\x87\xe6\x96\x87\xe7\xab\xa0\xe6\x9d\xa5\xe6\xba\x90\xe4\xba\x8e linux\xe5\x85\xac\xe7\xa4\xbe\xe7\xbd\x91\xe7\xab\x99(www.linuxidc.com)  \xe5\x8e\x9f\xe6\x96\x87\xe9\x93\xbe\xe6\x8e\xa5\xef\xbc\x9ahttp://www.linuxidc.com/linux/2015-05/118149.htmy'
self: <gettext.NullTranslations instance at 0xb570636c>

Comment 1 Eric Li 2015-07-17 08:30:49 UTC
Created attachment 1053013 [details]
File: backtrace

Comment 2 Eric Li 2015-07-17 08:30:51 UTC
Created attachment 1053014 [details]
File: dso_list

Comment 3 Eric Li 2015-07-17 08:30:52 UTC
Created attachment 1053015 [details]
File: environ

Comment 4 Radek Holy 2015-07-17 10:45:48 UTC
Looks like a problem in the Copr plugin.

Comment 5 Miroslav Suchý 2015-07-22 12:08:41 UTC
Jakube can you take it please?

Comment 6 Jakub Kadlčík 2015-07-27 10:54:58 UTC
I am confirming that it is an issue in copr plugin.

Please note that the issue is not related to `mosquito/myrepo` at all.

Steps to reproduce:
1. sudo dnf copr enable mosquito/myrepo  # Or another <user>/<copr>
2. Type "ěščřžýáíé" as an answer for "Do you want to continue? [y/N]:"

Expected results:
It should ask same question again. Like when you answer whatever else instead of "y" or "n".

Comment 7 Jakub Kadlčík 2015-07-27 14:09:56 UTC
Modified in: 36bacb6

Comment 8 Fedora Update System 2015-08-10 10:05:41 UTC
dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23

Comment 9 Fedora Update System 2015-08-10 10:49:19 UTC
dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22

Comment 10 Fedora Update System 2015-08-11 02:10:33 UTC
Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 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.1.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13162/dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-08-15 02:13:41 UTC
dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-08-19 07:51:30 UTC
dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository.  If problems still persist, please make note of it in this bug report.