I noticed a problem with the file(cFile) function of xharbour. According to the docs, it should search for cFile in the following order, if cFile does not contain any directory information:
1. current dir
2. dir set with set default
3. dir set with set path
If set default is not set, it searches the current dir, but if set default is set, it only searches this dir and not the current dir.
This small samples shows the error:
#include "Fivewin.ch"
function Main ()
? "Testfile.txt", File ("testfile.txt") // found, ok
? "Testdir.txt", File ("testdir.txt") // not found, ok
SET DEFAULT TO ".\testdir" // subdir of the current dir
? "Testfile.txt", File ("testfile.txt") // not found, should be found
? "Testdir.txt", File ("testdir.txt") // found, ok
RETURN (nil)Does anyone else has noticed this behavior ?
Stefan