Mercurial > mxe-octave
diff installer-files/octave-launch.c @ 5960:49b3f6c6d255
octave-launch: Don't use short path names when building default-octave.
* installer-files/octave-launch.c: Conditionally don't transform to short path
names.
* binary-dist-rules.mk (octave-launch): De-activate transformation to short path
names when building "default-octave".
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 21 Nov 2021 12:29:36 +0100 |
parents | 9cd5425b033b |
children | 1569a1d140ae |
line wrap: on
line diff
--- a/installer-files/octave-launch.c Sun Nov 21 11:55:46 2021 +0100 +++ b/installer-files/octave-launch.c Sun Nov 21 12:29:36 2021 +0100 @@ -80,12 +80,16 @@ path[nSize] = L'\0'; } +#ifdef NO_SHORT_PATH_NAMES + StringCchCopyW (rootpath, PATH_SZ, path); +#else /* transform to short paths to work around issues with spaces in paths */ /* FIXME: This won't help on systems with de-activated short paths */ nSize = GetShortPathNameW (path, rootpath, PATH_SZ-1); if (nSize == 0) StringCchCopyW (rootpath, PATH_SZ, path); +#endif SetEnvironmentVariableW (L"MXE_ROOT", rootpath); @@ -200,6 +204,9 @@ StringCchCopyW (path, PATH_SZ, tmpbuff); } +#ifdef NO_SHORT_PATH_NAMES + StringCchCopyW (newhome, PATH_SZ, path); +#else /* transform to short paths to work around issues with spaces in paths */ /* FIXME: This won't help on systems with de-activated short @@ -208,6 +215,7 @@ if (nSize == 0) StringCchCopyW (newhome, PATH_SZ, path); +#endif SetEnvironmentVariableW (L"HOME", newhome); }