Bug 433168

Summary: kyum is not UTF-8 clean
Product: [Fedora] Fedora Reporter: G.Wolfe Woodbury <redwolfe>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-10 16:07:29 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
dump of bash environment (login shell) none

Description G.Wolfe Woodbury 2008-02-17 05:18:17 UTC
Description of problem:
 kyum does not properly deal with UTF-8 characters in descriptions (such as 
 kdepim in rawhide of 20080215) and does not get a complete list of packages
 when descriptions are enabled.

Version-Release number of selected component (if applicable):
 kyum-0.7.5-11
 yum-3.2.11-1

How reproducible:
 always

Steps to Reproduce:
1. run kyum
2.
3.
  
Actual results:
 kyum fails to collect complete package list unless descriptions are disabled

Expected results:
 normal operation

Additional info:

Comment 1 Jochen Schmitt 2008-02-17 20:11:24 UTC
Tahk you for your bug report. If you can get a traceback it will be nice, if you
can post it.

Comment 2 Jochen Schmitt 2008-02-20 19:20:18 UTC
*** 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 237, 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 213, in doCommand
***     rap = base.listPkgs(ypl.available, _('Available Packages'), basecmd)
***   File "/usr/share/yum-cli/output.py", line 316, in listPkgs
***     self.infoOutput(pkg)
***   File "/usr/share/yum-cli/output.py", line 287, in infoOutput
***     print self._outKeyValFill(_("Description: "), enc(pkg.description))
***   File "/usr/lib/python2.5/codecs.py", line 303, in write
***     data, consumed = self.encode(object, self.errors)
*** UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 855:
ordinal not in range(128)
Process exited normally with code 1.


Comment 3 Seth Vidal 2008-02-20 19:50:27 UTC
What locale are you running in?

Comment 4 G.Wolfe Woodbury 2008-02-20 23:29:19 UTC
Created attachment 295467 [details]
dump of bash environment (login shell)

root env is the same w/o GDM_LANG var set
also LC_COLLATE is not set for root

Comment 5 G.Wolfe Woodbury 2008-02-20 23:34:05 UTC
LANG=en_US.UTF-8 is in both user and root environment.

kyum is usually run from a persistent root shell in a gnome-terminal window.

Not: pup, pirut and direct yum invocations do _not_ trigger the bug, only
running from kyum causes the problem.  This is a second go-round for this
complaint, and the kyum maintainer ducked the last time too.


Comment 6 Seth Vidal 2008-03-12 16:49:59 UTC
YUMBUGDAY

Comment 7 G.Wolfe Woodbury 2008-05-10 16:07:29 UTC
closing due to lack of response.
Disgusting.