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:
parent
096f22f424
commit
d1238423cd
@ -1,3 +1,8 @@
|
||||
2004-06-15 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* java/lang/natSystem.cc (getenv0): Don't assume environment
|
||||
variable is Latin 1 coded.
|
||||
|
||||
2004-06-14 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* configure.in: Support --enable-version-specific-runtime-libs.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user