Bug 786985 - crash in yum with Czech locale
Summary: crash in yum with Czech locale
Keywords:
Status: CLOSED DUPLICATE of bug 714113
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-rhn-plugin
Version: 6.1
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-02 20:19 UTC by Mikuláš Patočka
Modified: 2014-01-21 06:24 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 09:51:00 UTC
Target Upstream Version:


Attachments (Terms of Use)
a screenshow of an error message. It could be easily reproduced from the console by setting LANG to "cs_CZ.utf8" and running "yum upgrade" (185.44 KB, image/png)
2012-02-02 20:19 UTC, Mikuláš Patočka
no flags Details

Description Mikuláš Patočka 2012-02-02 20:19:09 UTC
Created attachment 559125 [details]
a screenshow of an error message. It could be easily reproduced from the console by setting LANG to "cs_CZ.utf8" and running "yum upgrade"

Description of problem:
I was using RHEL 6.1 and a yum error message popped up.

Version-Release number of selected component (if applicable):
RHEL 6.1, yum version 3.2.29

How reproducible:
yum crashes always if you have Czech locale and the system is not registered in RHN

Steps to Reproduce:
1. unregister the system from RHN
2. export LANG=cs_CZ.utf8
3. yum upgrade
  
Actual results:
# yum upgrade
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
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 274, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 129, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 432, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 882, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 668, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 265, in populateSack
    self.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 72, in doSetup
    self.ayum.plugins.run('prereposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 184, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/share/yum-plugins/rhnplugin.py", line 121, in prereposetup_hook
    str(e))
  File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 179, in __repr__
    log.log_me(msg)
  File "/usr/share/rhn/up2date_client/up2dateLog.py", line 37, in log_me
    self.write_log(s)
  File "/usr/share/rhn/up2date_client/up2dateLog.py", line 57, in write_log
    msg = "%s %s\n" % (self.log_info, str(s))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0159' in position 7: ordinal not in range(128)


Expected results:
it should display error message meaning that the system is unregistered and not a stack dump

Additional info:

Comment 2 Miroslav Suchý 2012-02-14 09:51:00 UTC

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


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