Skip to content

Commit 3b606d8

Browse files
committed
Surprisingly, in Darwin python 2.x Unicode is UCS2
1 parent bbbf0b0 commit 3b606d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3633,7 +3633,8 @@ function TPythonInterface.GetUnicodeTypeSuffix : String;
36333633
if (fMajorVersion > 3) or ((fMajorVersion = 3) and (fMinorVersion >= 3)) then
36343634
Result := ''
36353635
else if APIVersion >= 1011 then
3636-
Result := {$IFDEF WINDOWS} 'UCS2' {$ELSE} 'UCS4' {$ENDIF}
3636+
Result :=
3637+
{$IFDEF WINDOWS} 'UCS2' {$ELSEIF DARWIN} 'UCS2' {$ELSE} 'UCS4' {$ENDIF}
36373638
else
36383639
Result := '';
36393640
end;

0 commit comments

Comments
 (0)