Bug 871177 - [abrt] system-config-language-1.3.5-11.fc17: gettext.py:368:lgettext:UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
Summary: [abrt] system-config-language-1.3.5-11.fc17: gettext.py:368:lgettext:UnicodeE...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-language
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: anish
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4574453ee5b29aa9ef9aad66d3c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-29 20:05 UTC by Filip Hort
Modified: 2015-04-12 23:12 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-01 08:28:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (273 bytes, text/plain)
2012-10-29 20:05 UTC, Filip Hort
no flags Details
File: dso_list (31 bytes, text/plain)
2012-10-29 20:05 UTC, Filip Hort
no flags Details
File: smolt_data (2.98 KB, text/plain)
2012-10-29 20:05 UTC, Filip Hort
no flags Details
File: core_backtrace (411 bytes, text/plain)
2012-10-29 20:05 UTC, Filip Hort
no flags Details

Description Filip Hort 2012-10-29 20:05:20 UTC
Description of problem:
It seems, that this problem appeared after update today.

Version-Release number of selected component:
system-config-language-1.3.5-11.fc17

Additional info:
libreport version: 2.0.16
abrt_version:   2.0.16
cmdline:        /usr/bin/python /usr/share/system-config-language/system-config-language.py
kernel:         3.6.3-1.fc17.i686

backtrace:
:gettext.py:368:lgettext:UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
:
:Traceback (most recent call last):
:  File "/usr/share/system-config-language/system-config-language.py", line 68, in <module>
:    print _("Starting graphical mode failed.  Starting text mode instead.")
:  File "/usr/share/system-config-language/system-config-language.py", line 29, in <lambda>
:    _ = lambda x: gettext.ldgettext("system-config-language", x)
:  File "/usr/lib/python2.7/gettext.py", line 543, in ldgettext
:    return t.lgettext(message)
:  File "/usr/lib/python2.7/gettext.py", line 368, in lgettext
:    return tmsg.encode(locale.getpreferredencoding())
:UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 13: ordinal not in range(128)
:
:Local variables in innermost frame:
:message: 'Starting graphical mode failed.  Starting text mode instead.'
:tmsg: u'Start grafick\xe9ho m\xf3du selhal. Spou\u0161t\xedm m\xedsto toho textov\xfd m\xf3d.'
:self: <gettext.GNUTranslations instance at 0x8c0620c>
:missing: <object object at 0xb777f570>

Comment 1 Filip Hort 2012-10-29 20:05:25 UTC
Created attachment 635180 [details]
File: environ

Comment 2 Filip Hort 2012-10-29 20:05:27 UTC
Created attachment 635181 [details]
File: dso_list

Comment 3 Filip Hort 2012-10-29 20:05:29 UTC
Created attachment 635182 [details]
File: smolt_data

Comment 4 Filip Hort 2012-10-29 20:05:32 UTC
Created attachment 635183 [details]
File: core_backtrace

Comment 5 Steve Tyler 2012-11-01 04:19:25 UTC
The attached environ file shows an invalid locale:
LANG=cz

What does this show?
$ cat /etc/sysconfig/i18n

This is the Czech locale file:
$ grep title /usr/share/i18n/locales/cs_CZ
title      "Czech locale for the Czech Republic"

$ LANG=cz locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=cz
LC_CTYPE="cz"
LC_NUMERIC="cz"
LC_TIME="cz"
LC_COLLATE="cz"
LC_MONETARY="cz"
LC_MESSAGES="cz"
LC_PAPER="cz"
LC_NAME="cz"
LC_ADDRESS="cz"
LC_TELEPHONE="cz"
LC_MEASUREMENT="cz"
LC_IDENTIFICATION="cz"
LC_ALL=

Comment 6 Filip Hort 2012-11-01 08:28:06 UTC
I have installed new updates today and the error does not come any more.


Note You need to log in before you can comment on or make changes to this bug.