From d1238423cd03725a2beb98ffb157c4e5022ef3cf Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 15 Jun 2004 13:43:33 +0000 Subject: [PATCH] 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 --- libjava/ChangeLog | 5 +++++ libjava/java/lang/natSystem.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.30.2