Bug 1052862
| Summary: | When specify "LANG" opention and it's not "eng", rhsm will throw a error message then quit. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | xingge <gxing> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | alikins, ldai, liliu, qianzhan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-14 17:21:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 863175 | ||
LANG=zh is not a valid locale.
Try:
LANG=zh_CN.utf8
System tools will set the locale to the correct format.
|
Description of problem: When specify "LANG" opention and it's not "eng", rhsm will throw a error message then quit. Version-Release number of selected component (if applicable): subscription-manager-firstboot-1.10.10-1.el7.x86_64 subscription-manager-1.10.10-1.el7.x86_64 subscription-manager-gui-1.10.10-1.el7.x86_64 python-rhsm-1.10.10-1.el7.x86_64 How reproducible: always How reproducible: always Steps to Reproduce: 1.run cmd with "LANG=***" Actual results: [root@dhcp-13-59 ~]# LANG=zh subscription-manager register 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) [root@dhcp-13-59 ~]# LANG=fr subscription-manager list --available 'ascii' codec can't encode character u'\xe8' in position 7: ordinal not in range(128) [root@dhcp-13-59 ~]# LANG=ml subscription-manager facts 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) [root@dhcp-13-59 ~]# LANG=ja subscription-manager repos 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) [root@dhcp-13-59 ~]# LANG=eng subscription-manager status <----LANG=eng rhsm works fine. +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current Expected results: No error will show and the rhsm should work fine when use LANG=***. Additional info: The help doc works fine with "LANG=***" option like: [root@dhcp-13-59 ~]# LANG=zh subscription-manager status 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) [root@dhcp-13-59 ~]# LANG=zh subscription-manager status --help 使用:subscription-manager status [选项] 显示这个系统订阅和产品的状态信息 选项: -h, --help 显示此帮助信息并退出 --proxy=PROXY_URL proxy URL 的格式为 proxy_hostname:proxy_port --proxyuser=PROXY_USER 使用基本验证的 HTTP proxy 用户 --proxypassword=PROXY_PASSWORD 使用基本验证的 HTTP proxy 密码 --ondate=ON_DATE 以后要查看状态的日期,默认为今天的日期(例如:2014-01-14)