From d1238423cd03725a2beb98ffb157c4e5022ef3cf Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 15 Jun 2004 13:43:33 +0000 Subject: 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/java/lang/natSystem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/lang/natSystem.cc') diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc index ffb26a3..a9dca32 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); } -- cgit v1.1