| Summary: | [as_IN] subscription-manager --help in as_IN is throwing unsupported locale setting error | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Shwetha Kallesh <skallesh> |
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.8 | CC: | aalam, ankit, bkearney, eng-i18n-bugs, fsharath, jsefler, qe-i18n-bugs, sshedmak |
| Target Milestone: | rc | Keywords: | i18n |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-08 03:47:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 771748, 807971 | ||
you can run with $as_IN.UTF-8 subscription-manager --help $localedef --list|grep as_IN showing that 'as_IN' is present. So only way to run is 'as_IN.UTF-8' it is not specific to SM only, but all other applications. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Btw, just to provide an additional information that, Assamese (as_IN) was one of the Tech Preview Languages for RHEL5. Assamese was/isn't supported for RHEL5. Thanks! Ankit Description of problem: subscription-manager --help in as_IN is throwing unsupported locale setting error Steps to Reproduce: # LANG=as_IN subscription-manager --help Actual Result: ব্যৱহাৰ: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] প্ৰাথমিক মডিউলসমূহ: list এই মেচিনৰ বাবে স্বাক্ষৰণ আৰু উৎপাদন তথ্য তালিকাভুক্ত কৰক refresh চাৰ্ভাৰৰ পৰা শেহতীয়া স্বাক্ষৰণ তথ্য টানি আনক register register the client to the Customer Portal or another subscription management service. release কোন os উন্মোচন ব্যৱহাৰ কৰা হব সংৰূপণ কৰক subscribe ৰেজিস্টাৰ কৰা মেচিনক এটা ধাৰ্য্য কৰা উৎপাদনলে স্বাক্ষৰ কৰক unregister unregister the client from the Customer Portal or another subscription management service. unsubscribe মেচিনক সকলো অথবা বিশেষ স্বাক্ষৰণসমূহৰ পৰা অস্বাক্ষৰ কৰক অন্য মডিউলসমূহ (অনুগ্ৰহ কৰি তথ্যচিত্ৰ চাওক): clean চাৰ্ভাৰক প্ৰভাৱ নেপেলাই স্থানীয় উপভোক্তা আৰু স্বাক্ষৰণ তথ্য আতৰাওক config এই মেচিনৰ দ্বাৰা ব্যৱহৃত সংৰূপ প্ৰাচলসমূহ তালিকাভুক্ত কৰক, সংহতি কৰক, অথবা আতৰাওক। environments এজন ব্যৱহাৰকাৰীৰ বাবে উপলব্ধ পৰিৱেশসমূহ প্ৰদৰ্শন কৰে facts এই মেচিনৰ বাবে বৰ্তমান তথ্যসমূহৰ সৈতে কাম কৰক identity এই মেচিনৰ বাবে পৰিচয় প্ৰমাণপত্ৰ প্ৰদৰ্শন কৰক অথবা নতুন এটা অনুৰোধ কৰক import প্ৰমাণপত্ৰসমূহ যি সঁজুলিৰ বাহিৰ প্ৰদান কৰা হৈছিল ইমপোৰ্ট কৰক orgs সংঘঠনসমূহ যাৰ বাবে এজন ব্যৱহাৰকাৰীয়ে এটা চিস্টেম ৰেজিস্টাৰ কৰিব পাৰে redeem এটা পূৰ্বসংৰূপীত মেচিনৰ বাবে এটা স্বাক্ষৰণ ঘুৰাই নিয়াৰ চেষ্টা repos এই মেচিনৰ ব্যৱহাৰ কৰিবলে অনুজ্ঞা থকা ভঁৰালসমূহ তালিকাভুক্ত কৰে service-level এই চিস্টেমৰ বাবে সেৱা স্তৰসমূহ ব্যৱস্থাপনা কৰক। version প্ৰিন্ট সংস্কৰণ তথ্য Expected Result: Same as above Moving bug to verified state. On RHEL5.8 box,
with 'locale' utility (provided by glibc); only 'as_IN.utf8' is listed as available locale ('as_IN' locale is not available).
$rpm -q glibc
glibc-2.5.81
$locale --all-locales | grep as_IN
as_IN.utf8
$echo $?
0
# LANG=as_IN subscription-manager --help
...
...
locale.Error: unsupported locale setting
# echo $?
1
Following may be relevant:
1) glibc doesn't provide as_IN locale, only as_IN.utf8
[See https://bugzilla.redhat.com/show_bug.cgi?id=657556]
2) Remove .UTF-8 suffix from locale names when it is the only supported codeset
[See http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0e8131bb32cf026c87baeacb7abf2a9bdbbc4953]
Conclusion:
# LANG=as_IN subscription-manager --help
would run without any error after updating 'glibc' pkg from version '2.5.81' to '2.12.x and later'.
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. http://rhn.redhat.com/errata/RHBA-2013-0033.html |
Description of problem: subscription-manager --help in as_IN is throwing unsupported locale setting error Version-Release number of selected component (if applicable): subscription-manager-gnome-0.98.3-1.git.2.1a022f3.el5_7 subscription-manager-firstboot-0.98.3-1.git.2.1a022f3.el5_7 subscription-manager-migration-0.98.3-1.git.2.1a022f3.el5_7 subscription-manager-0.98.3-1.git.2.1a022f3.el5_7 How reproducible: Steps to Reproduce: [root@tiger ~]# LANG=as_IN subscription-manager --help Actual results: Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 54, in ? from subscription_manager import managercli File "/usr/share/rhsm/subscription_manager/managercli.py", line 32, in ? from subscription_manager import constants File "/usr/share/rhsm/subscription_manager/constants.py", line 25, in ? installed_product_status = \ File "/usr/share/rhsm/subscription_manager/constants.py", line 22, in <lambda> _ = lambda x: gettext.ldgettext("rhsm", x) File "/usr/lib64/python2.4/gettext.py", line 530, in ldgettext return t.lgettext(message) File "/usr/lib64/python2.4/gettext.py", line 355, in lgettext return tmsg.encode(locale.getpreferredencoding()) File "/usr/lib64/python2.4/locale.py", line 417, in getpreferredencoding setlocale(LC_CTYPE, "") File "/usr/lib64/python2.4/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting Expected results: Should display subscription-manager help in assamese Additional info: