|
@@ -313,8 +313,13 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
function LegacyChar2ExtendedGraphemeCluster(const Ch: Char): UnicodeString;
|
|
function LegacyChar2ExtendedGraphemeCluster(const Ch: Char): UnicodeString;
|
|
|
|
+var
|
|
|
|
+ tmpS: RawByteString;
|
|
begin
|
|
begin
|
|
- Result := Ch;
|
|
|
|
|
|
+ SetLength(tmpS, 1);
|
|
|
|
+ tmpS[1]:=Ch;
|
|
|
|
+ System.SetCodePage(tmpS,CP_OEMCP,False);
|
|
|
|
+ Result:=tmpS;
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure Enhanced2Legacy;
|
|
procedure Enhanced2Legacy;
|