From: Andrew Haley Date: Tue, 15 Jun 2004 13:43:33 +0000 (+0000) Subject: natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1238423cd03725a2beb98ffb157c4e5022ef3cf;p=gcc.git natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded. 2004-06-15 Andrew Haley * java/lang/natSystem.cc (getenv0): Don't assume environment variable is Latin 1 coded. From-SVN: r83182 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f1f20cb2c39..299ec1c59ef 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-06-15 Andrew Haley + + * java/lang/natSystem.cc (getenv0): Don't assume environment + variable is Latin 1 coded. + 2004-06-14 Andreas Jaeger * configure.in: Support --enable-version-specific-runtime-libs. diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc index ffb26a3cf80..a9dca324f8b 100644 --- a/libjava/java/lang/natSystem.cc +++ b/libjava/java/lang/natSystem.cc @@ -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); }