[erlang-patches] jinterface: bug detecting user home directory on windows

Vlad Dumitrescu vladdu55@REDACTED
Fri Feb 1 11:48:06 CET 2013


Fixed comparison links

https://github.com/vladdu/otp/compare/erlang:master...jinterface_windows_cookie
https://github.com/vladdu/otp/compare/erlang:master...jinterface_windows_cookie.patch


/Vlad


On Fri, Feb 1, 2013 at 11:44 AM, Vlad Dumitrescu <vladdu55@REDACTED> wrote:

> Hi,
>
> Jinterface uses System.getProperty("user.home") to locate the user's home
> and the cookie file. On Windows, the result might be different than the
> value used by Erlang, which looks first to the HOMEDRIVE and HOMEPATH
> variables.
>
> The fix makes jinterface use the same logic to locate the cookie file.
>
> The branch is based on master.
>
> git fetch git://github.com/vladdu/otp.git jinterface_windows_cookie
>
> https://github.com/vladdu/otp/compare/jinterface_windows_cookie
> https://github.com/vladdu/otp/compare/jinterface_windows_cookie.patch
>
> Writing a test for this would require running it with different
> environment settings and how to do it depends on how you run your tests at
> OTP. I would need guidance to implement it.
>
> The fix has been in the erlide code base for a while and I didn't see any
> problems.
>
> best regards,
> Vlad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130201/7b748efe/attachment.htm>


More information about the erlang-patches mailing list