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()


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.


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