java interpreter does not honor LC_CTYPE or LC_MESSAGES

Bug #541532 reported by Per Ångström
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

My locale is this:
LANG=en_US.utf8
LANGUAGE=en
LC_CTYPE=sv_SE.utf8
LC_NUMERIC=sv_SE.utf8
LC_TIME=sv_SE.utf8
LC_COLLATE=sv_SE.utf8
LC_MONETARY=sv_SE.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=sv_SE.utf8
LC_NAME=sv_SE.utf8
LC_ADDRESS=sv_SE.utf8
LC_TELEPHONE=sv_SE.utf8
LC_MEASUREMENT=sv_SE.utf8
LC_IDENTIFICATION=sv_SE.utf8
LC_ALL=

I therefore expect servertool's language to be English. However, this is how it looks:
-----------------
Välkommen till Java IDL Server Tool
skriv kommandona vid prompten

servertool >
-----------------

In other words, it's in Swedish.

It looks like it uses LC_CTYPE, which I think is wrong.

ProblemType: Bug
Architecture: amd64
CheckboxSubmission: c2d78d7690d0fab80ba77c674de4d6a9
CheckboxSystem: 90b928d283473e9c089e730778bbd3da
Date: Thu Mar 18 22:27:26 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: openjdk-6-jre-headless 6b18~pre2-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: openjdk-6
Uname: Linux 2.6.32-16-generic x86_64

Revision history for this message
Per Ångström (autark) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

> It looks like it uses LC_CTYPE

why do you guess at LC_CTYPE, and not, e.g. LC_MESSAGES?
please check yourself, which var triggers

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Per Ångström (autark) wrote : Re: [Bug 541532]

Matthias Klose wrote:
>> It looks like it uses LC_CTYPE
Actually, I did experiment changing LC_CTYPE to something else, and got
another language, so I shouldn't have been so vague.

Changed in openjdk-6 (Ubuntu):
status: Incomplete → New
Revision history for this message
Per Ångström (autark) wrote : Re: servertool uses wrong locale

By the way, my LC_MESSAGES is en_US.utf8.

Revision history for this message
Matthias Klose (doko) wrote :

starting with
  LANG=en_US LC_CTYPE=de_DE servertool
starts in english, but adding the encoding ".utf8" does give the wrong result

Changed in openjdk-6 (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Rolf Leggewie (r0lf)
summary: - servertool uses wrong locale
+ java interpreter does not honor LC_CTYPE or LC_MESSAGES
Revision history for this message
Rolf Leggewie (r0lf) wrote :

This is the same for any Java application that I launch (the jitsi VoIP client, for example).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.