> Hi,
> I have a Java program on a Windows XP machine configured with the
[quoted text clipped - 6 lines]
> null instead of "CN". I am using JDK/JRE 1.4.2. Is this is a bug or is
> there anything wrong with my setup?
Where are you getting that property name? I see a lot of Google results
from people who both expect and see it set, but it's not specified in
the API specification. If indeed it is set, this would be unspecified
behavior.
Try java.util.Locale.getDefault() instead.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
ddk - 04 Dec 2005 07:52 GMT
import java.util.*;
Locale local = Locale.getDefault( );
System.out.println( l.getCountry( ) );
IchBin - 04 Dec 2005 08:02 GMT
> import java.util.*;
> Locale local = Locale.getDefault( );
> System.out.println( l.getCountry( ) );
I think you meant this...
System.out.println( local.getCountry( ) );

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
ddk - 04 Dec 2005 08:17 GMT