make nspr and tx path handling happy on win32, not part of build

git-svn-id: svn://10.0.0.236/trunk@136727 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
axel%pike.org 2003-01-21 14:07:43 +00:00
parent 555409444d
commit fa2d97c2d7

View File

@ -46,6 +46,7 @@
#include "nsString.h"
#include "nsVoidArray.h"
#include "prenv.h"
#include "prsystem.h"
#include "nsDirectoryServiceUtils.h"
#include "nsDirectoryServiceDefs.h"
@ -241,6 +242,11 @@ void runCategory(nsIFile* aConfCat, nsIFile* aGoldCat, nsIFile* aRefTmp,
test->GetNativePath(style);
source->GetNativePath(src);
reference->GetNativePath(refPath);
if (PR_GetDirectorySeparator() =='\\') {
src.ReplaceChar('\\','/');
style.ReplaceChar('\\','/');
refPath.ReplaceChar('\\','/');
}
SimpleErrorObserver obs;
txStandaloneXSLTProcessor proc;
fstream result(refTmp.get(),