Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: running firstboot as user in non-English locales gives utf8 backtrace
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Summary: running firstboot as user in non-English locales gives utf8 backtrace Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: low Priority: low Component: firstboot AssignedTo: clumens@redhat.com ReportedBy: petersen@redhat.com QAContact: extras-qa@fedoraproject.org CC: clumens@redhat.com, fedora-i18n-bugs@redhat.com Estimated Hours: 0.0 Classification: Fedora Target Release: ---
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:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Chris Lumens clumens@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag| |needinfo?(petersen@redhat.c | |om)
--- Comment #1 from Chris Lumens clumens@redhat.com 2009-10-02 09:47:21 EDT --- 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.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag|needinfo?(petersen@redhat.c | |om) |
--- Comment #2 from Jens Petersen petersen@redhat.com 2009-10-06 04:00:06 EDT --- No this is it.
I think it is trivial to reproduce from a shell.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Chris Lumens clumens@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|clumens@redhat.com |dmalcolm@redhat.com, | |ivazqueznet@gmail.com, | |james.antill@redhat.com, | |jonathansteffan@gmail.com, | |katzj@fedoraproject.org Component|firstboot |python AssignedTo|clumens@redhat.com |katzj@fedoraproject.org
--- Comment #3 from Chris Lumens clumens@redhat.com 2009-10-06 12:00:05 EDT --- 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)
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Jeremy Katz katzj@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|katzj@fedoraproject.org |dmalcolm@redhat.com
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Parag pnemade@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mmcgrath@redhat.com, | |pnemade@redhat.com Component|python |smolt Version|12 |14 AssignedTo|dmalcolm@redhat.com |mmcgrath@redhat.com
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
--- Comment #5 from Parag pnemade@redhat.com 2010-09-02 02:30:49 EDT --- Created attachment 442550 --> https://bugzilla.redhat.com/attachment.cgi?id=442550 When applied this patch firstboot warning is gone
Looks firstboot traceback shows problem in /usr/bin/smoltSendProfile
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=526854
Parag pnemade@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |NEXTRELEASE Last Closed| |2010-09-03 00:02:37
--- Comment #6 from Parag pnemade@redhat.com 2010-09-03 00:02:37 EDT --- Fixed in smolt-1.4.2.2-3.fc14
i18n-bugs@lists.fedoraproject.org