Description of problem: When firstboot is run in a locale uses non-ascii characters firstboot backtrace Version-Release number of selected component (if applicable): firstboot-1.109-1.fc12 How reproducible: every time Steps to Reproduce: 1. LANG=de_DE.UTF-8 firstboot 2. LANG=ja_JP.UTF-8 firstboot 3. etc Actual results: 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) Expected results: translation of $ LANG=C firstboot firstboot ERROR: You must be root to run firstboot. Additional info:
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: import gettext _ = 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.")) os._exit(0)
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: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Created attachment 442550 [details] When applied this patch firstboot warning is gone Looks firstboot traceback shows problem in /usr/bin/smoltSendProfile
Fixed in smolt-1.4.2.2-3.fc14