#4 Compile errors by blanks in file/directory names

None
closed-accepted
nobody
Compiler (1)
5
2013-08-07
2005-03-28
Helge Schulz
No

XSB 2.7.1 can not compile any prolog file, if it is
installed inside a directory where the full path
contains blank(s)/space(s) inside names (like
"C:\program files\XSB" on Windows). The gpp
preprocessor can not be called and gets incorrect
parameters.

This patch fixes this problem. I added correct quoting
in parse.P and add needed special quoting in
system_xsb.c for Windows. The behaviour of spawnvp on
Windows is a little bit tricky: The program name must
not be quoted, but argv[0] and all other parameters
must be. Otherwise the part of argv[0] after the first
blank is interpreted as first parameter.

Best regards,

Helge

--
Helge Schulz http://OpenSHORE.org

Discussion

  • Helge Schulz
    Helge Schulz
    2005-03-28

    XSB 2.7.1 quoting patch (Unix + Windows)

     
    Attachments
  • Michael Kifer
    Michael Kifer
    2013-08-07

    • status: open --> closed-accepted
    • Group: -->