diff options
author | Andrew Haley <aph@redhat.com> | 2004-06-15 13:43:33 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2004-06-15 13:43:33 +0000 |
commit | d1238423cd03725a2beb98ffb157c4e5022ef3cf (patch) | |
tree | 1a8288795c2db8f8659727d37f3eae5c815daa66 /libjava/java | |
parent | 096f22f42494fad3990d6a2d74a9844dd6af977b (diff) | |
download | gcc-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
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/lang/natSystem.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |