Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 9901

Summary: Portage should export *some* LC_* variables to C to make sure things emerge for everyone
Product: Gentoo Linux Reporter: Adrian Almenar <aalmenar>
Component: [OLD] DevelopmentAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: critical CC: base-system, cedric, cjk, java, mr_bones_, nakano, releng, veiko
Priority: Highest    
Version: 1.4_rc1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adrian Almenar 2002-10-29 08:53:00 UTC
 
Comment 1 Adrian Almenar 2002-10-29 08:54:21 UTC
I emerged sun-jdk-1.4.1.01 and tried to compile this class: 
public class Test1 { 
  public static void main(String argv[]) { 
        System.out.println("
Comment 2 Adrian Almenar 2002-10-29 08:54:21 UTC
I emerged sun-jdk-1.4.1.01 and tried to compile this class: 
public class Test1 { 
  public static void main(String argv[]) { 
        System.out.println("áéíóú"); 
} 
} 
 
Compiles OK, but when i execute it i get and output of: 
????? 
 
 
 
Comment 3 Adrian Almenar 2002-10-29 08:59:20 UTC
Ive discovered that gentoo does'nt set the variable $LANG  I exported LANG="en_US" and the problem solved, so you need to check somewhere because this variable is not getting set.  I checked on various installations and it failed.   It doesnt fail with any JDK lower than 1.4.1.    I also want to point out that this is not a JAVA problem this should be a problem for other packages, i checked RedHat 8.0 and they set for every user ther Variable lang to LANG="UTF-8", so you need to check something thats set this depending on user settings or by default UTF-8. 
Comment 4 Adrian Almenar 2002-10-29 09:06:57 UTC
i also checked mandrake 9.0 /etc/profile 
 
<snip> 
# some old programs still use it (eg: "man"), and it is also 
# required for level1 compliance for LI18NUX2000 
NLSPATH=/usr/share/locale/%l/%N 
</snip> 
 
Would be good to check gentoo cause i dont see this anywhere and if this fixes 
things great 1.4 will be out soon. 
Comment 5 Adrian Almenar 2002-11-03 23:14:15 UTC
*** Bug 9577 has been marked as a duplicate of this bug. ***
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-11-06 20:08:20 UTC
*** Bug 9988 has been marked as a duplicate of this bug. ***
Comment 7 Adrian Almenar 2002-12-08 23:24:46 UTC
What happened with this bug. ?? 
 
seemant ?? 
Comment 8 Todd Berman (RETIRED) gentoo-dev 2003-05-24 12:23:03 UTC
Im assigning this to bug-wranglers in a hope to see a possible fix at some point soonish.
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-08 01:35:46 UTC
todd -- please bring this issue up on -core
 be nice to have some sort of LANG resolution for 1.4
Comment 10 Adrian Almenar 2003-07-17 06:49:59 UTC
Why in the installation Ex. in /etc/rc.conf let the user set his LANG variable so this could be solved ? having a lista of posible combinations should be ideal for this or have a tool like mirrorselect to select the LANG setting.

My .02 $
Comment 11 Adrian Almenar 2003-09-15 23:34:53 UTC
I have a report of someone that fixed it temporary using: 
export LC_ALL="en_US" 
 
Just my 2 cents. 
Comment 12 Cedric Veilleux 2003-11-12 07:23:38 UTC
I can confirm that adding the environment variable LC_ALL to a valid locale such as en_US or fr_CA fixes the problem.

the LANG variable does not seem to have any effects.

I have tested with sun-jdk-1.4.2.02 only
Comment 13 Toralf Förster gentoo-dev 2004-04-25 02:23:24 UTC
Having the folowing two lines in my .profile:

export LC_TYPE=de_DE@euro
export LC_CTYPE=$LC_TYPE

resolves my problem with "
Comment 14 Toralf Förster gentoo-dev 2004-04-25 02:23:24 UTC
Having the folowing two lines in my .profile:

export LC_TYPE=de_DE@euro
export LC_CTYPE=$LC_TYPE

resolves my problem with "äöüß..." - I use blackdow-jdk-1.4.1, because the jdk from Sun was to buggy for my application.

If you set LANG than *all* things are effected including german manuals while executing "man ...".

I think a lot of users in Germany need "äöüß..." but dislike german translations of the system manuals.

Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-31 18:03:58 UTC
*** Bug 17051 has been marked as a duplicate of this bug. ***
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-21 07:07:52 UTC

*** This bug has been marked as a duplicate of 57973 ***