Bug 543410 - Locales are breaking package-cleanup tool
Summary: Locales are breaking package-cleanup tool
Keywords:
Status: CLOSED DUPLICATE of bug 560369
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 542107 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 11:00 UTC by Zdenek Kabelac
Modified: 2014-01-21 23:12 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-01 20:38:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2009-12-02 11:00:47 UTC
Description of problem:

package-cleanup doesn't work with Czech locales.

# LANG=cs_CZ.UTF-8 package-cleanup 
Zavedeny zásuvné moduly:dellsysidplugin2, priorities, refresh-packagekit, refresh-updatesd
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 382, in <module>
    util = PackageCleanup()
  File "/usr/bin/package-cleanup", line 58, in __init__
    self.main()
  File "/usr/bin/package-cleanup", line 302, in main
    self.optparser.print_help()
  File "/usr/lib64/python2.6/optparse.py", line 1664, in print_help
    file.write(self.format_help().encode(encoding, "replace"))
  File "/usr/lib64/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 188: ordinal not in range(128)


However works without problems with plain C locales:

Loaded plugins: dellsysidplugin2, priorities, refresh-packagekit, refresh-
              : updatesd
Usage: 
    package-cleanup: helps find problems in the rpmdb of system and correct them

    usage: package-cleanup --problems or --leaves or --orphans or --oldkernels
    
....


Version-Release number of selected component (if applicable):

yum-utils-1.1.24-2.fc13.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Christoph Wickert 2010-01-10 16:26:32 UTC
Same here with de_DE.utf8

Comment 2 seth vidal 2010-01-12 21:00:27 UTC
*** Bug 542107 has been marked as a duplicate of this bug. ***

Comment 3 Tim Lauridsen 2010-02-01 20:38:07 UTC

*** This bug has been marked as a duplicate of bug 560369 ***


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