This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch for Preview: Some GCJ 3.3/MingW Fixes
- From: Andrew Haley <aph at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>, rmathew at hotmail dot com
- Date: Tue, 15 Apr 2003 21:28:33 +0100
- Subject: Patch for Preview: Some GCJ 3.3/MingW Fixes
- References: <5284D9A5JHVTHCOKPM63SOMKRL1W8576.3e9c6a88@p733>
Mohan Embar writes:
> -
> +
> // Install exception handler
> SetUnhandledExceptionFilter (win32_exception_handler);
> -
> +
> // Initialize our executable name
> GetModuleFileName(NULL, exec_name, sizeof(exec_name));
> @@ -104,5 +105,5 @@
> _Jv_Free (buffer);
> }
> -
> +
> // Use GetUserName to set 'user.name'.
> buflen = 257; // UNLEN + 1
> @@ -115,6 +116,6 @@
> }
>
> - // According to the api documentation for 'GetWindowsDirectory()', the
> - // environmental variable HOMEPATH always specifies the user's home
> + // According to the api documentation for 'GetWindowsDirectory()', the
> + // environmental variable HOMEPATH always specifies the user's home
> // directory or a default directory. On the 3 windows machines I checked
> // only 1 had it set. If it's not set, JDK1.3.1 seems to set it to
> @@ -131,5 +132,5 @@
> {
> if (GetWindowsDirectory (winHome, MAX_PATH))
> - SET ("user.home", winHome);
> + SET ("user.home", winHome);
> _Jv_Free (winHome);
> }
> @@ -149,5 +150,5 @@
> {
> sprintf (buffer, "%d.%d", (int) osvi.dwMajorVersion,
> - (int) osvi.dwMinorVersion);
> + (int) osvi.dwMinorVersion);
> SET ("os.version", buffer);
> _Jv_Free (buffer);
> @@ -164,5 +165,5 @@
> SET ("os.name", "Windows Me");
> else
> - SET ("os.name", "Windows ??");
> + SET ("os.name", "Windows ??");
These are null changes.
There seems to be some sort of problem with this diff.
Andrew.