This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getenv()


Done.

2004-06-15  Andrew Haley  <aph@redhat.com>

        * java/lang/natSystem.cc (getenv0): Don't assume environment
        variable is Latin 1 coded.

Index: java/lang/natSystem.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natSystem.cc,v
retrieving revision 1.57
diff -u -r1.57 natSystem.cc
--- java/lang/natSystem.cc      14 Jun 2004 14:34:21 -0000      1.57
+++ java/lang/natSystem.cc      15 Jun 2004 13:43:08 -0000
@@ -153,5 +153,5 @@
   const char *value = ::getenv (buf);
   if (value == NULL)
     return NULL;
-  return JvNewStringLatin1 (value);
+  return JvNewStringUTF (value);
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]