Apache OpenOffice (AOO) Bugzilla – Issue 36556
osl_getExecutableFile() sometimes return a wrong path
Last modified: 2013-02-24 21:07:36 UTC
The osl _getExecutablefile function has changed the return value. In an earlier version the function has returned a file url "file:///d:/test/xy.exe", today the function returns the file url without the binary extension .exe ("file:///d:/test/xy"). The return value of a compatible API function has changed which of course is a bug independent of any other reasons why the implementation has been changed. Windows only!
Furthermore is the extension part of a file URL. The behaviour could have been changed as well, i think that under Windows .com is preferred used before .exe.
I have changed the prio to P2 because the function returns not the path of the executable, it appends the executable name to the current directory. The idlc use this function to preprare the command for the preprocessor. See the output below. The first test is full qualified and the second one not, check the "* ### ..." output 1. k:\sdksample\SRC680\wntmsci10\bin.m60\idlc.exe -I ..\..\..\.. CannotActivateFactoryException k:\sdksample\SRC680\wntmsci10\bin.m60\idlc.exe: compile 'CannotActivateFactoryException.idl' ... 1 ### file:///k:/sdksample/SRC680/wntmsci10/bin.m60/idlc.exe 2 ### file:///k:/sdksample/SRC680/wntmsci10/bin.m60/ 3 ### file:///k:/sdksample/SRC680/wntmsci10/bin.m60/idlcpp.exe k:\sdksample\SRC680\wntmsci10\bin.m60\idlc.exe: returned successful Sun Microsystems (R) k:\sdksample\SRC680\wntmsci10\bin.m60\idlc.exe Version 1.1 2. idlc -I ..\..\..\.. CannotActivateFactoryException.idl idlc: compile 'CannotActivateFactoryException.idl' ... 1 ### file:///M:/SRC680/udkapi/com/sun/star/loader/idlc 2 ### file:///M:/SRC680/udkapi/com/sun/star/loader/ 3 ### file:///M:/SRC680/udkapi/com/sun/star/loader/idlcpp.exe idlc: starting preprocessor failed
Probably it should be prio 1 because no udkapi and offapi project can be build.
(1) Adapting summary to Juergens last comments (wrong path, i.e. relative to cwd)... (2) Changing priority to P1... (3) Accepting...
Fixed in sal/osl/w32/process.c r1.29
Verified against milestone m61 (thru successfully building 'udkapi')...
Closing...