Bug 443408

Summary: Fedora 9 Preview Live installer always display messages in English
Product: [Fedora] Fedora Reporter: Kazutoshi Morioka <morioka>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: rstrode, vpvainio
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: NeedsRetesting
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-30 18:40:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235706    
Attachments:
Description Flags
this is /tmp/anaconda.log
none
/tmp/anaconda.log with --lang=ja.
none
and this is messages on the terminal running liveinst --lang=ja
none
This one-liner for gdm may fix this problem. none

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.