Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
yum grouplist command fails with unknown locale error when a user defined locale is specified in the environment
Version-Release number of selected component (if applicable):
3.2.29
How reproducible:
Always
Steps to Reproduce:
1. Define and compile custom locale
2. run 'yum grouplist'
3.
Actual results:
ValueError: unknown locale: en_CA
Expected results:
Shows list of yum package groups available
Additional info:
This is the automatically produced dump message:
Subject: [abrt] full crash report
User-Agent: Heirloom mailx 12.4 7/29/08
Content-Type: text/plain; charset=us-ascii
Status: R
abrt_version: 2.0.8
cmdline: /usr/bin/python /usr/bin/yum grouplist installed
executable: /usr/bin/yum
kernel: 2.6.32-279.19.1.el6.x86_64
reason: locale.py:410:_parse_localename:ValueError: unknown locale: en_CA@yyyy
-mmm-dd.UTF-8
time: Mon 28 Jan 2013 09:20:02 EST
uid: 0
username: root
sosreport.tar.xz: Binary file, 761720 bytes
backtrace:
:locale.py:410:_parse_localename:ValueError: unknown locale: en_CA
:
: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 285, in user_main
: errcode = main(args)
: File "/usr/share/yum-cli/yummain.py", line 136, in main
: result, resultmsgs = base.doCommands()
: File "/usr/share/yum-cli/cli.py", line 438, in doCommands
: return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.ext
cmds)
: File "/usr/share/yum-cli/yumcommands.py", line 457, in doCommand
: return base.returnGroupLists(extcmds)
: File "/usr/share/yum-cli/cli.py", line 1215, in returnGroupLists
: patterns=userlist)
: File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2810, in doGroupLists
: case_sensitive=not ignore_case)
: File "/usr/lib/python2.6/site-packages/yum/comps.py", line 433, in return_groups
: for name in group.name, group.groupid, group.ui_name:
: File "/usr/lib/python2.6/site-packages/yum/comps.py", line 48, in ui_name
: return self.nameByLang(get_my_lang_code())
: File "/usr/lib/python2.6/site-packages/yum/misc.py", line 1001, in get_my_lang_code
: mylang = locale.getlocale(locale.LC_MESSAGES)
: File "/usr/lib64/python2.6/locale.py", line 497, in getlocale
: return _parse_localename(localename)
: File "/usr/lib64/python2.6/locale.py", line 410, in _parse_localename
: raise ValueError, 'unknown locale: %s' % localename
:ValueError: unknown locale: en_CA
:
:Local variables in innermost frame:
:code: 'en_CA'
:localename: 'en_CA'
:modifier: 'yyyy-mmm-dd.UTF-8'
This is the locale file info:
/usr/lib/locale/en_CA/LC_MESSAGES
/usr/lib/locale/en_CA@yyyy-mmm-dd/LC_MESSAGES
/usr/lib/locale/en_CA/LC_MESSAGES
/usr/lib/locale/en_CA/LC_MESSAGES
/usr/lib/locale/en_CA/LC_MESSAGES
/usr/lib/locale/en_CA/LC_MESSAGES
This is already fixed upstream with:
commit 7738cfbffe3066fca4a6c8a514f9b56f09ab2eb3
Author: James Antill <james>
Date: Fri May 27 16:24:34 2011 -0400
Work around RHEL-5 python broken getlocale() call. BZ 708292
...just need to add it.
Comment 3RHEL Program Management
2013-10-14 00:01:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-1384.html