Hide Forgot
# rhnreg_ks --help Došlo k chybě: <type 'exceptions.UnicodeDecodeError'> Více informací naleznete ve /var/log/up2date # cat /var/log/up2date [Tue Apr 19 03:49:37 2011] up2date Traceback (most recent call last): File "/usr/sbin/rhnreg_ks", line 216, in <module> cli.run() File "/usr/share/rhn/up2date_client/rhncli.py", line 73, in run self.initialize() File "/usr/share/rhn/up2date_client/rhncli.py", line 106, in initialize (self.options, self.args) = self.optparser.parse_args() File "/usr/lib64/python2.6/optparse.py", line 1394, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib64/python2.6/optparse.py", line 1434, in _process_args self._process_long_opt(rargs, values) File "/usr/lib64/python2.6/optparse.py", line 1509, in _process_long_opt option.process(opt, value, values, self) File "/usr/lib64/python2.6/optparse.py", line 788, in process self.action, self.dest, opt, value, values, parser) File "/usr/lib64/python2.6/optparse.py", line 810, in take_action parser.print_help() File "/usr/lib64/python2.6/optparse.py", line 1664, in print_help file.write(self.format_help().encode(encoding, "replace")) <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 72: ordinal not in range(128)
I forget package version: rhn-setup-1.0.0-60.el6.noarch
I assume you have LC_ALL set to cs_CZ. Right?
Aha, I see it already in subject of this bug.
(In reply to comment #4) > Aha, I see it already in subject of this bug. Sorry. :) Next time I will put all necessary information in one place.
Already fixed in upstream in BZ 683546
Cherry picked as ef0a64cec0cdcf553e2020d7941ab5c7429dafd8
Just for information also execution of rhn_register (without any option) results in same (or similar) error (again with LANG=cs_CZ.UTF-8): [Wed Apr 20 03:04:20 2011] rhn_register Traceback (most recent call last): File "/usr/sbin/rhn_register", line 75, in <module> app.run() File "/usr/share/rhn/up2date_client/rhncli.py", line 74, in run sys.exit(self.main() or 0) File "/usr/sbin/rhn_register", line 57, in main ui.main() File "/usr/share/rhn/up2date_client/tui.py", line 1271, in main tui = Tui(screen, test) File "/usr/share/rhn/up2date_client/tui.py", line 1127, in __init__ self.drawFrame() File "/usr/share/rhn/up2date_client/tui.py", line 1172, in drawFrame self.screen.pushHelpLine(_(" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen").encode('utf-8')) <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc5 in position 27: ordinal not in range(128) I suppose it is just a duplicate of issue reported here, hopefully it is already fixed as well.
Yes, I'm aware of that. It should even affect: spacewalk-channel rhn-profile-sync yum-rhn-plugin
Verified in rhn-client-tools-1.0.0-61.el6 yum-rhn-plugin-0.9.1-26.el6 Reproducer: ]# LANG=cs_CZ.UTF8 rhnreg-ks --help
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: rhnreg_ks failed due translated "--help" strings. This was fixed by retrieving translated strings in Unicode.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0565.html