aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2004-06-15 13:43:33 +0000
committerAndrew Haley <aph@gcc.gnu.org>2004-06-15 13:43:33 +0000
commitd1238423cd03725a2beb98ffb157c4e5022ef3cf (patch)
tree1a8288795c2db8f8659727d37f3eae5c815daa66
parent096f22f42494fad3990d6a2d74a9844dd6af977b (diff)
downloadgcc-d1238423cd03725a2beb98ffb157c4e5022ef3cf.zip
gcc-d1238423cd03725a2beb98ffb157c4e5022ef3cf.tar.gz
gcc-d1238423cd03725a2beb98ffb157c4e5022ef3cf.tar.bz2
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
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/natSystem.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index f1f20cb..299ec1c 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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.
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);
}