Skip to content

Commit 142db9f

Browse files
committed
Fix #104
1 parent e5b2c0d commit 142db9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,7 +3175,7 @@ procedure MaskFPUExceptions(ExceptionsMasked : boolean;
31753175
Converts line breaks to LF and optionally adds a line break at the end
31763176
*)
31773177
function CleanString(const s : AnsiString; AppendLF : Boolean = True) : AnsiString; overload;
3178-
function CleanString(const s : string; AppendLF : Boolean = True) : string; overload;
3178+
function CleanString(const s : UnicodeString; AppendLF : Boolean = True) : UnicodeString; overload;
31793179

31803180
//#######################################################
31813181
//## ##
@@ -9860,7 +9860,7 @@ function CleanString(const s : AnsiString; AppendLF : Boolean) : AnsiString;
98609860
Result := Result + LF;
98619861
end;
98629862

9863-
function CleanString(const s : string; AppendLF : Boolean) : string;
9863+
function CleanString(const s : UnicodeString; AppendLF : Boolean) : UnicodeString;
98649864
begin
98659865
Result := AdjustLineBreaks(s, tlbsLF);
98669866
if AppendLF and (result[length(result)] <> LF) then

0 commit comments

Comments
 (0)