java only use the LC_CTYPE locale setting to find out the users current locale, this can be vary wrong is you for example have LC_CTYPE=ja_JP.utf-8 and LANG=sv_SE.utf-8 Reproducible: Always Steps to Reproduce: 1. install any java jre or jdk 2. set your localesettings: # unset LC_ALL # unset LC_CTYPE # unset LC_MESSAGE # export LANG=sv_SE.utf-8 3. run "LC_CTYPE=ja_JP.utf-8 java LocalSupportedClass" 4. run "LC_MESSAGE=ja_JP.utf-8 java LocalSupportedClass" Actual Results: in step 3: messages is printed in japanese in step 4: messages is printed in english (or swedish if supported) Expected Results: in step 3: messages shuld be printed in english (or swedish if supported) in step 4: messages shuld be printed in japanese # java-config -L [sun-jdk-1.5.0.01] "Sun JDK 1.5.0.01" (/etc/env.d/java/20sun-jdk-1.5.0.01) [blackdown-jdk-1.4.2.01] "Blackdown JDK 1.4.2.01" (/etc/env.d/java/20blackdown-jdk-1.4.2.01) * # java -version java version "1.4.2-01" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-01) Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-01, mixed mode) # /opt/sun-jdk-1.5.0.01/bin/java -version java version "1.5.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_01-b08, mixed mode) # emerge info Portage 2.0.51-r13 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 x86_64) ================================================================= System uname: 2.6.10-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 22 2004, 17:04:02)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://mirror.pudas.net/gentoo http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa apache2 audiofile avi berkdb bitmap-fonts bonobo cdparanoia cdr cjk crypt cups divx4linux dvd dvdr emul-linux-x86 encode esd f77 fam fla flac font-server fortran ftp gcj gdbm gif gnome gpm gtk gtk2 gtkhtml imagemagick imlib insecure-drivers java jp2 jpeg junit libwww lzw lzw-tiff mad mikmod mpeg msn multilib mysql ncurses network nls no-old-linux offensive oggvorbis opengl operanom2 pdflib php png posix pthreads python radeon readline rtc samba sdl slang sockets spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vanilla videos vim xine xml xml2 xpm xrandr xv xvid zlib" Unset: LDFLAGS
What is your expert opinion on this? If it needs to be fixed, how can we do it, considering this is a binary-only package? Please advise.
I don't think you can do wery match about it, you may send it upstream or make a wrapper script that change the localesettings for java and javac - the less good aboute wrapper scripts is that it will only affect cals to java and javac directly, not other lunchers linked to libjava.so (The JVM) and that other locale settings still will be wrong.
Dead bug, dead herd -> closing, sorry.