|
@@ -1561,9 +1561,15 @@ Begin
|
|
for Windows compatibility: it allows both '/' and '\'
|
|
for Windows compatibility: it allows both '/' and '\'
|
|
as directory separator. We don't want that behaviour
|
|
as directory separator. We don't want that behaviour
|
|
here, since 'abc\' is a valid file name under Unix.
|
|
here, since 'abc\' is a valid file name under Unix.
|
|
|
|
+
|
|
|
|
+ (mantis 15836) On the other hand, many archives on
|
|
|
|
+ windows have '/' as pathseparator, even Windows
|
|
|
|
+ generated .odt files. So we disable this for windows.
|
|
}
|
|
}
|
|
OldDirectorySeparators:=AllowDirectorySeparators;
|
|
OldDirectorySeparators:=AllowDirectorySeparators;
|
|
|
|
+ {$ifndef Windows}
|
|
AllowDirectorySeparators:=[DirectorySeparator];
|
|
AllowDirectorySeparators:=[DirectorySeparator];
|
|
|
|
+ {$endif}
|
|
Path:=ExtractFilePath(OutFileName);
|
|
Path:=ExtractFilePath(OutFileName);
|
|
OutStream:=Nil;
|
|
OutStream:=Nil;
|
|
If Assigned(FOnCreateStream) then
|
|
If Assigned(FOnCreateStream) then
|
|
@@ -1576,10 +1582,12 @@ Begin
|
|
AllowDirectorySeparators:=OldDirectorySeparators;
|
|
AllowDirectorySeparators:=OldDirectorySeparators;
|
|
OutStream:=TFileStream.Create(OutFileName,fmCreate);
|
|
OutStream:=TFileStream.Create(OutFileName,fmCreate);
|
|
end;
|
|
end;
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ AllowDirectorySeparators:=OldDirectorySeparators;
|
|
Result:=True;
|
|
Result:=True;
|
|
If Assigned(FOnStartFile) then
|
|
If Assigned(FOnStartFile) then
|
|
FOnStartFile(Self,OutFileName);
|
|
FOnStartFile(Self,OutFileName);
|
|
|
|
+
|
|
End;
|
|
End;
|
|
|
|
|
|
|
|
|