natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded.
2004-06-15 Andrew Haley <aph@redhat.com> * java/lang/natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded. From-SVN: r83182
This commit is contained in:
committed by
Andrew Haley
parent
096f22f424
commit
d1238423cd
@@ -153,5 +153,5 @@ java::lang::System::getenv0 (jstring name)
|
||||
const char *value = ::getenv (buf);
|
||||
if (value == NULL)
|
||||
return NULL;
|
||||
return JvNewStringLatin1 (value);
|
||||
return JvNewStringUTF (value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user