Bug 442695 - traceback occurs due to extended ASCII characters
traceback occurs due to extended ASCII characters
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-16 06:25 EDT by David Robinson
Modified: 2014-01-21 18:02 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-16 07:59:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Robinson 2008-04-16 06:25:46 EDT
Description of problem:
Yum doesn't handle extended ASCII characters in package descriptions.

Version-Release number of selected component (if applicable):
yum-3.2.14-2.fc9.noarch

How reproducible:
100%

Steps to Reproduce:
1. yum info git-daemon
or
1. add an extended ASCII character to a package's description within the
package's spec file:

%package daemon
Summary:        Git protocol dæmon
Group:          Development/Tools
Requires:       git = %{version}-%{release}
%description daemon
The git dæmon for supporting git:// access to git repositories

Character 10 within %description, æ, is extended ASCII code 145.

Actual results:
$ yum info git-daemon
Loaded plugins: refresh-packagekit
Available Packages
Name       : git-daemon
Arch       : x86_64
Version    : 1.5.4.5
Release    : 3.fc9
Size       : 102 k
Repo       : rawhide
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 236, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 111, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 309, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 214, in doCommand
    rap = base.listPkgs(ypl.available, _('Available Packages'), basecmd)
  File "/usr/share/yum-cli/output.py", line 338, in listPkgs
    self.infoOutput(pkg)
  File "/usr/share/yum-cli/output.py", line 305, in infoOutput
    print self.fmtKeyValFill(_("Summary    : "), enc(pkg.summary))
  File "/usr/share/yum-cli/output.py", line 257, in fmtKeyValFill
    val = str(val)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in position 14:
ordinal not in range(128)

Expected results:
Yum shouldn't traceback even if there is junk in a package's description.

Additional info:
I've filed bug 442691 against git to have the character removed.
Comment 1 David Robinson 2008-04-16 06:33:06 EDT
I've just found that the wv2 package also causes this breakage. Its description
is "A library which allows access to Microsoft® Word files". The registered
trademark sign is causing this one...
Comment 2 seth vidal 2008-04-16 07:59:32 EDT
This has been fixed in yum-3.2.14-7.f9 and above in rawhide/koji

Note You need to log in before you can comment on or make changes to this bug.