Bug 1052840
Summary: | The rct tool "cat-cert" module got a traceback when system environment language is not English. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | xingge <gxing> |
Component: | subscription-manager | Assignee: | candlepin-bugs |
Status: | CLOSED DUPLICATE | QA Contact: | John Sefler <jsefler> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 | CC: | alikins, ckozak, ldai |
Target Milestone: | rc | Keywords: | Reopened |
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-15 13:35:24 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 |
Description
xingge
2014-01-14 07:50:34 UTC
LANG=zh is not a valid locale. Try: LANG=zh_CN.utf8 The results that I tried LANG=zh_CN.utf8. I just use LANG=*** to show the bug easily. I fact when I use rct cat-cert in a system which use zh_CN as default language the traceback shows too. [root@dhcp-13-59 ~]# LANG=zh_CN.utf8 rct cat-cert /etc/pki/entitlement/8337640300296218469.pem Traceback (most recent call last): File "/usr/bin/rct", line 47, in <module> sys.exit(abs(main() or 0)) File "/usr/bin/rct", line 42, in main return RctCLI().main() File "/usr/share/rhsm/subscription_manager/cli.py", line 166, in main return cmd.main() File "/usr/share/rhsm/rct/commands.py", line 39, in main return_code = self._do_command() File "/usr/share/rhsm/rct/cert_commands.py", line 76, in _do_command skip_products=self.options.no_products) File "/usr/share/rhsm/rct/printing.py", line 228, in printc printer.printc(cert) File "/usr/share/rhsm/rct/printing.py", line 124, in printc print self.cert_to_str(cert) File "/usr/share/rhsm/rct/printing.py", line 191, in cert_to_str return "%s\n%s%s" % (ProductCertificatePrinter.cert_to_str(self, cert), File "/usr/share/rhsm/rct/printing.py", line 172, in cert_to_str return "%s\n%s" % (CertificatePrinter.cert_to_str(self, cert), "\n".join(s)) File "/usr/share/rhsm/rct/printing.py", line 118, in cert_to_str self._append_to_cert_section(cert, s) File "/usr/share/rhsm/rct/printing.py", line 198, in _append_to_cert_section str_parts_list.append("\t%s: %s" % (_("Pool ID"), pool_id)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 1: ordinal not in range(128) I believe this is a dup of bug 1048325 You are correct. The fix is in master, I'll probably do a build in the next day or so. *** This bug has been marked as a duplicate of bug 1048325 *** |