This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: getenv()
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, Classpath at gnu dot org
- Date: Mon, 14 Jun 2004 15:15:04 -0400
- Subject: Re: getenv()
- References: <200406071507.i57F7Sjf026003@redhat.com>
Andrew Haley wrote:
+ return JvNewStringLatin1 (value);
+ }
+
Shouldn't this use JvNewStringUTF? We assume Utf-8 in most places for
POSIX, and I could imagine problems if someone read a path variable
containing non-Latin1 characters.
Regards
Bryce