Red Hat Bugzilla – Bug 526854
running firstboot as user in non-English locales gives utf8 backtrace
Last modified: 2010-09-03 00:02:37 EDT
Description of problem:
When firstboot is run in a locale uses non-ascii characters
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. LANG=de_DE.UTF-8 firstboot
2. LANG=ja_JP.UTF-8 firstboot
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 773, in emit
stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 27: ordinal not in range(128)
$ LANG=C firstboot
firstboot ERROR: You must be root to run firstboot.
Is there more to the traceback than this? I can't see where in firstboot this is coming from with just one line to go on.
No this is it.
I think it is trivial to reproduce from a shell.
Looks to be a bug in a python module - either logging or gettext. All we're doing here is:
_ = lambda x: gettext.ldgettext("firstboot", x)
if not opts.test and (os.getuid() > 0 or os.geteuid() > 0):
logging.error(_("You must be root to run firstboot."))
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.
More information and reason for this action is here:
Created attachment 442550 [details]
When applied this patch firstboot warning is gone
Looks firstboot traceback shows problem in /usr/bin/smoltSendProfile
Fixed in smolt-184.108.40.206-3.fc14