Bug 443408 - Fedora 9 Preview Live installer always display messages in English
Summary: Fedora 9 Preview Live installer always display messages in English
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: NeedsRetesting
: 443845 (view as bug list)
Depends On:
Blocks: F9Blocker
TreeView+ depends on / blocked
 
Reported: 2008-04-21 13:02 UTC by Kazutoshi Morioka
Modified: 2008-04-30 18:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-04-30 18:40:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
this is /tmp/anaconda.log (21.00 KB, text/plain)
2008-04-21 13:06 UTC, Kazutoshi Morioka
no flags Details
/tmp/anaconda.log with --lang=ja. (21.01 KB, text/plain)
2008-04-21 13:23 UTC, Kazutoshi Morioka
no flags Details
and this is messages on the terminal running liveinst --lang=ja (2.98 KB, text/plain)
2008-04-21 13:24 UTC, Kazutoshi Morioka
no flags Details
This one-liner for gdm may fix this problem. (663 bytes, patch)
2008-04-21 18:42 UTC, Kazutoshi Morioka
no flags Details | Diff

Description Kazutoshi Morioka 2008-04-21 13:02:01 UTC
Description of problem:
Fedora 9 Preview Live installer always display messages in English even if I
choose Japanese as desktop language from the menu of GDM login screen.
Live desktop is displayed in Japanese as expected. 

Version-Release number of selected component (if applicable):
Fedora 9 Preview Live DVD x86_64

How reproducible:
always

Steps to Reproduce:
1.Boot from Fedora-9-Preview-x86_64-Live DVD
2.Select Japanese from the menu bottom of login screen
3.Logging in
4.Click Live installer icon
  
Actual results:
Fedora installer is starting up, and shows 'Next' button at bottom-right.
And all words on following screen are also displayed in English.

Expected results:
Fedora installer is starting up, and shows '次(N)' button at bottom-right.
And all words on following screen are also displayed in Japanese.

Additional info:
I opened a terminal and check LANG environment variable; it's ja_JP.utf8.
I tried a command "liveinst --lang=ja_JP.utf8", and got same result.
After successful live installation, installed systems show Japanese without any
problem.

I don't know how to get anaconda.log for Live installer.

In the Fedora 8 era, Live installer shows messages in Japanese if Japanese was
selected as desktop language.

Comment 1 Kazutoshi Morioka 2008-04-21 13:06:59 UTC
Created attachment 303140 [details]
this is /tmp/anaconda.log

Comment 2 Kazutoshi Morioka 2008-04-21 13:23:13 UTC
Created attachment 303142 [details]
/tmp/anaconda.log with --lang=ja.

I tried a command "liveinst --lang=ja", and got Japanese messages on the Live
installer.

Comment 3 Kazutoshi Morioka 2008-04-21 13:24:17 UTC
Created attachment 303143 [details]
and this is messages on the terminal running liveinst --lang=ja

Comment 4 Kazutoshi Morioka 2008-04-21 15:34:07 UTC
I think this caused by gdm's LANG value "ja_JP.utf8" instead of "ja_JP.UTF-8".
Another languages could have same problem, i.e. "en_US.utf8" instead of
"en_US.UTF-8".
This problem exists not only for Live CD, but also installed system's gdm.

Comment 5 Kazutoshi Morioka 2008-04-21 18:42:43 UTC
Created attachment 303187 [details]
This one-liner for gdm may fix this problem.

The gdm-simple-greeter collect locale name by reading directories under
/usr/share/locale. And check if it's UTF-8 by setlocale(LC_CTYPE, language) and
nl_langinfo(CODESET). But for most locale name without codeset name,
nl_langinfo(CODESET) returns non-UTF8 codeset; for example, "EUC-JP" for
"ja_JP", "ISO-8859-1" for "en_US". In this case, gdm-simple-greeter append
".utf8" to locale name. This ".utf8" is hard-coded into gdm-languages.c.
Changing this ".utf8" to ".UTF-8" may fix this problem.

Comment 6 Ray Strode [halfline] 2008-04-22 13:56:33 UTC
GDM collects locale names by reading them from /usr/lib/locale/locale-archive. 
It then filters that list by stripping:

1) locales that don't have translations in /usr/share/locale
2) locales that aren't UTF-8
3) locales that don't have font coverage

It has a fallback mode where if it can't get a list of locales from
/usr/lib/locale/locale-archive then it will try to guess available locales from
/usr/share/locale.  This won't work very well, but isn't something Fedora users
will ever encounter.

locale codesets should be normalized such that all dashes and underscores are
removed and all letters are the same case.  I suspect anaconda isn't doing this.

In some ways ".utf8" is more canonical than ".UTF-8" because .utf8 is the format
you get with locale -a


Comment 7 Kazutoshi Morioka 2008-04-22 14:59:38 UTC
OK, I understood that changing gdm's locale name to fix this problem is wrong.
Thank you.

Comment 8 Jeremy Katz 2008-04-22 18:48:37 UTC
*sigh*  Of course, it used to be .UTF-8 and the change is after beta.

But put something into anaconda so that it will work with either

Comment 9 Jeremy Katz 2008-04-24 02:15:57 UTC
*** Bug 443845 has been marked as a duplicate of this bug. ***

Comment 10 Bill Nottingham 2008-04-30 18:40:33 UTC
Confirmed with today's rawhide.


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