mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:00:07 +02:00
AmigaOS4: fix compilation for double UTF8Encode in library unit and system
This commit is contained in:
parent
10c60c45d5
commit
41e32d0fba
@ -312,7 +312,7 @@ function ExtendedGraphemeCluster2LegacyChar(const EGC: UnicodeString; CodePage:
|
||||
var
|
||||
tmpS: RawByteString;
|
||||
begin
|
||||
tmpS:=UTF8Encode(EGC);
|
||||
tmpS:=System.UTF8Encode(EGC);
|
||||
System.SetCodePage(tmpS,CodePage,True);
|
||||
if Length(tmpS)=1 then
|
||||
Result:=tmpS[1]
|
||||
|
Loading…
Reference in New Issue
Block a user