Hi Martin Buchholz,

I believe (but I could be wrong) that only java applications exhibit this
behavior, programs made with GTK or QT are not affected,
they probably look at the level of the X11 case are not in variable
LANG or assume
a default locale.


>  $ (unset LC_ALL LC_COLLATE LANG LANGUAGE GDM_LANG; locale)
> LANG=
> LANGUAGE=
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
>

Please try to use á é í ...

But I think the operating system should set the default, not the
> application.  On my Ubuntu system I see the traditional ASCII English
> default:
>

I agree, but the JVM could not be pro-active ?

Thanks for reply !

2013/3/18 Martin Buchholz <marti...@google.com>

> It *would* be nice if the world agreed on using UTF-8 as a universal
> encoding for all text.  However:
>
> Standard says
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
>
> """If the LANG environment variable is not set or is set to the empty
> string, the implementation-defined default locale shall be used."""
>
> But I think the operating system should set the default, not the
> application.  On my Ubuntu system I see the traditional ASCII English
> default:
>
>  $ (unset LC_ALL LC_COLLATE LANG LANGUAGE GDM_LANG; locale)
> LANG=
> LANGUAGE=
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
>
>
> On Mon, Mar 18, 2013 at 11:09 AM, Helio Frota <heliofr...@gmail.com>wrote:
>
>>
>> I would suggest taking en_US.UTF-8 as default when the LANG variable is
>> not
>> set to avoid problems with encoding.
>>
>


-- 
Helio Frota
http://www.heliofrota.com/

Reply via email to