| Summary: | crash in yum with Czech locale | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Mikuláš Patočka <mpatocka> | ||||
| Component: | yum-rhn-plugin | Assignee: | Miroslav Suchý <msuchy> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.1 | ||||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-02-14 09:51:00 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
*** This bug has been marked as a duplicate of bug 714113 *** |
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: