natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
� * 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
This commit is contained in:
parent
bb27e3881a
commit
11a606ebaf
1 changed files with 6 additions and 1 deletions
|
@ -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", ";");
|
||||
|
|
Loading…
Add table
Reference in a new issue