[kaffe] CVS kaffe (robilad): fixed default file encoding setting

Kaffe CVS cvs-commits at kaffe.org
Thu Feb 9 13:55:56 PST 2006


PatchSet 7123 
Date: 2006/02/09 21:44:15
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
fixed default file encoding setting

2006-02-09  Dalibor Topic  <robilad at kaffe.org>

        Fix for #15.

        * libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:
        Check if there is a file encoding specified in the locale, and set
        file.encoding property to it if it is.

Members: 
	ChangeLog:1.4641->1.4642 
	libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4641 kaffe/ChangeLog:1.4642
--- kaffe/ChangeLog:1.4641	Thu Feb  9 02:23:44 2006
+++ kaffe/ChangeLog	Thu Feb  9 21:44:15 2006
@@ -1,5 +1,13 @@
 2006-02-09  Dalibor Topic  <robilad at kaffe.org>
 
+	Fix for #15.
+
+	* libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:
+	Check if there is a file encoding specified in the locale, and set
+	file.encoding property to it if it is.
+ 
+2006-02-09  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/vmspecific/gnu/crypto/Properties.java,
 	libraries/javalib/vmspecific/gnu/crypto/Registry.java,
 	libraries/javalib/vmspecific/gnu/crypto/assembly/Assembly.java,
Index: kaffe/libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java
diff -u kaffe/libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:1.2 kaffe/libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:1.3
--- kaffe/libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:1.2	Fri Jan  6 18:58:12 2006
+++ kaffe/libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java	Thu Feb  9 21:44:18 2006
@@ -181,6 +181,10 @@
 	    {
 	      properties.setProperty("user.region", LOCALE.substring(3, 5));
 	    }
+	  if (LOCALE.charAt(5) == '.')
+	    {
+	      properties.setProperty("file.encoding", LOCALE.substring(6));
+	    }
 	}
       else 
 	{




More information about the kaffe mailing list