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:
Andrew Haley 2004-06-15 13:43:33 +00:00 committed by Andrew Haley
parent 096f22f424
commit d1238423cd
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);
}