This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: FYI: Change default locale


The default locale should be `en_US', not just `en', because `en_US'
has more complete information.  This only affects the fallback case
when the user doesn't have locale information in his environment.

I'm checking this in.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* java/lang/natSystem.cc (init_properties): Default locale is
	en_US, not just en.

Index: java/lang/natSystem.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natSystem.cc,v
retrieving revision 1.40
diff -u -r1.40 natSystem.cc
--- java/lang/natSystem.cc 2001/06/08 19:09:04 1.40
+++ java/lang/natSystem.cc 2001/09/05 17:04:47
@@ -441,6 +441,7 @@
 #endif /* HAVE_SETLOCALE */
     {
       SET ("user.language", "en");
+      SET ("user.region", "US");
     }  
 
   // Set the "user.timezone" property.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]