RE: Some issues on identifying user.name on Windows

2011-02-11 Thread Dmytro Sheyko
ail.com CC: core-libs-dev@openjdk.java.net Subject: Re: Some issues on identifying user.name on Windows Dmytro Sheyko wrote: Hi, Maybe it makes sense to use environment variables on Linux (and Solaris) as well in order to minimize failure of "user.name" and "user.home&quo

Re: Some issues on identifying user.name on Windows

2011-02-09 Thread Alan Bateman
Dmytro Sheyko wrote: Hi, Maybe it makes sense to use environment variables on Linux (and Solaris) as well in order to minimize failure of "user.name" and "user.home" detection, doesn't it? Yes, I think this makes sense. Typically USER and LOGNAME are set (we might just need to think about the

RE: Some issues on identifying user.name on Windows

2011-02-09 Thread Dmytro Sheyko
llbackUsernameValue; } Regards, Dmytro Date: Tue, 8 Feb 2011 13:30:19 +0000 From: alan.bate...@oracle.com To: dmytro_she...@hotmail.com CC: core-libs-dev@openjdk.java.net Subject: Re: Some issues on identifying user.name on Windows Message body Dmytro Sheyko wrote: Hi,

Re: Some issues on identifying user.name on Windows

2011-02-08 Thread Alan Bateman
Dmytro Sheyko wrote: Hi, I noticed following code openjdk-7-ea-src-b127-27_jan_2011\jdk\src\windows\native\java\lang\java_props_md.c /* * User name * We try to avoid calling GetUserName as it turns out to * be surprisingly expensive on NT. It pulls in an extra * 100 K

Some issues on identifying user.name on Windows

2011-02-08 Thread Dmytro Sheyko
Hi, I noticed following code openjdk-7-ea-src-b127-27_jan_2011\jdk\src\windows\native\java\lang\java_props_md.c /* * User name * We try to avoid calling GetUserName as it turns out to * be surprisingly expensive on NT. It pulls in an extra * 100 K of footprint. */