You are here: Foswiki>Tasks Web>Item10883 (17 Dec 2011, GeorgeClark)Edit Attach

Item10883: Windows-safe paths

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: Configure, Documentation, PlatformWindows
Branches:
Reported By: BeS
Waiting For:
Last Change By: GeorgeClark
As described in http://foswiki.org/Support/Question873, configure can fail. The cause was ...

$foswikiLibPath = "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\wiki\lib";

in LocalLib.cfg caused TemplateParser to fail.

Changing the Windows backslashes to forward slashes got rid of the error when running configure. Might be nice if that condition was detected and an error message was given (or detect and be compatible with Windows paths). I suspect my mistake would be quite common in Windows installations!

-- BeS - 15 Jun 2011

Babar pointed out that use of single quotes prevents the backslash from being interpreted as an escape. So using single quotes in the example might also avoid the issue.

-- GeorgeClark - 25 Aug 2011

 
Topic revision: r7 - 17 Dec 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy