natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
authorPer Bothner <bothner@gcc.gnu.org>
Thu, 6 May 1999 00:24:08 +0000 (17:24 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 6 May 1999 00:24:08 +0000 (17:24 -0700)

* java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
(default_file_encoding):  New global, initial value is above macro.
(init_properties):  Default file.encoding to default_file_encoding.

From-SVN: r26797

libjava/java/lang/natSystem.cc

index 27034ff20476255427f4a9d050edc5b8c0756e8e..742696e354c3e74475ddefac69c7acc8602ad514 100644 (file)
@@ -217,6 +217,11 @@ java::lang::System::identityHashCode (jobject obj)
   return _Jv_HashCode (obj);
 }
 
+#ifndef DEFAULT_FILE_ENCODING
+#define DEFAULT_FILE_ENCODING "8859_1"
+#endif
+char *default_file_encoding = DEFAULT_FILE_ENCODING;
+
 void
 java::lang::System::init_properties (void)
 {
@@ -241,7 +246,7 @@ java::lang::System::init_properties (void)
   SET ("os.name", "FIXME");
   SET ("os.arch", "FIXME");
   SET ("os.version", "FIXME");
-  SET ("file.encoding", "8859_1");  // FIXME
+  SET ("file.encoding", default_file_encoding);
 #ifdef WIN32
   SET ("file.separator", "\\");
   SET ("path.separator", ";");