Skip to content

Commit 319697b

Browse files
committed
fixing for Py2 on Solaris, #16
1 parent 6ed1bc6 commit 319697b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

python4lazarus/Sources/Core/PythonEngine.pas

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,19 +3624,18 @@ procedure TPythonInterface.CheckPython;
36243624
raise Exception.Create('Python is not properly initialized' );
36253625
end;
36263626

3627+
// https://github.com/Alexey-T/Python-for-Lazarus/issues/16
36273628
function TPythonInterface.GetUnicodeTypeSuffix : String;
36283629
begin
36293630
if (fMajorVersion > 3) or ((fMajorVersion = 3) and (fMinorVersion >= 3)) then
36303631
Result := ''
36313632
else
36323633
if APIVersion >= 1011 then
3633-
// https://github.com/Alexey-T/Python-for-Lazarus/issues/16
36343634
Result :=
3635-
{$ifdef windows} 'UCS2'
3635+
{$if defined(windows) or defined(darwin) or defined(solaris)}
3636+
'UCS2'
36363637
{$else}
3637-
{$ifdef darwin} 'UCS2'
3638-
{$else} 'UCS4'
3639-
{$endif}
3638+
'UCS4'
36403639
{$endif}
36413640
else
36423641
Result := '';

0 commit comments

Comments
 (0)