The foswiki svn repository is obsolete. Developers should register for a account for commit access to foswiki project. Github is ready for updates.

Item10883: Windows-safe paths

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine Configure, Documentation, PlatformWindows  
As described in, 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


ItemTemplate edit

Summary Windows-safe paths
ReportedBy BeS
Codebase 1.1.3
SVN Range
AppliesTo Engine
Component Configure, Documentation, PlatformWindows
Priority Normal
CurrentState Closed
Checkins Foswikirev:11926 Foswikirev:11927 Foswikirev:12378 Foswikirev:12379
TargetRelease patch
ReleasedIn 1.1.4
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 CopyrightStatement. Creative Commons License