Red Hat Bugzilla – Bug 250643
yum info crashes with some packages
Last modified: 2014-01-21 17:59:01 EST
Description of problem:
Yum crashes when I run yum info with some packages and LANG is pt_BR.UTF-8.
Version-Release number of selected component (if applicable): yum-3.2.1-1.fc7
Depends on package you are running yum info.
Steps to Reproduce:
1. Set LANG=pt_BR.UTF-8
2. Run "yum info openoffice.org-langpack-pt_BR"
Yum crashes with this message:
# yum info openoffice.org-langpack-pt_BR
Name : openoffice.org-langpack-pt_BR
Arch : i386
Epoch : 1
Size : 30 M
Repo : installed
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 266, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
File "/usr/share/yum-cli/yumcommands.py", line 164, in doCommand
base.listPkgs(ypl.installed, 'Installed Packages', basecmd)
File "/usr/share/yum-cli/output.py", line 102, in listPkgs
File "/usr/share/yum-cli/output.py", line 72, in infoOutput
print _("Summary: %s") % pkg.summary.encode("UTF-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal
not in range(128)
yum displaying the correct package info.
The problem doesn't occurs if I run "env LANG=C yum info
Also, I've tried running yum info with several other packages and the problem
only occurs in some packages, like bash, cpuspeed, acl and chkconfig.
this is fixed in yum 3.2.2 or above. 3.2.2 is in updates testing for f7 - it
may or may not be be released to updates-released.
if you'd like to try it out do:
yum --enablerepo=udpates-testing update yum
I've updated yum (now running yum-3.2.2-1.fc7) and it worked ok.
(In reply to comment #1)
> this is fixed in yum 3.2.2 or above. 3.2.2 is in updates testing for f7 - it
> may or may not be be released to updates-released.
> if you'd like to try it out do:
> yum --enablerepo=udpates-testing update yum