mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 19:29:30 +02:00
lazxml: fix writing file path with non ansi characters
git-svn-id: trunk@32928 -
This commit is contained in:
parent
bba0819501
commit
33e31be624
@ -48,6 +48,9 @@ procedure WriteXML(Element: TDOMNode; AStream: TStream); overload;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
LazUTF8;
|
||||
|
||||
type
|
||||
TXMLWriter = class;
|
||||
TSpecialCharCallback = procedure(Sender: TXMLWriter; const s: DOMString;
|
||||
@ -859,7 +862,7 @@ procedure WriteXMLFile(doc: TXMLDocument; const AFileName: String;
|
||||
var
|
||||
fs: TFileStream;
|
||||
begin
|
||||
fs := TFileStream.Create(AFileName, fmCreate);
|
||||
fs := TFileStream.Create(UTF8ToSys(AFileName), fmCreate);
|
||||
try
|
||||
WriteXMLFile(doc, fs, Flags);
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user