getenv()

Andrew Haley aph@redhat.com
Mon Jun 14 22:48:00 GMT 2004


Bryce McKinlay writes:
 > 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.

Good point!  I have no idea how or if people define environment
variables in extended character sets.  I should change it.

Thanks,
Andrew.



More information about the Java-patches mailing list