mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 23:46:04 +02:00
* use CP_OEMCP to convert characters in LegacyChar2ExtendedGraphemeCluster
git-svn-id: branches/unicodekvm@48533 -
This commit is contained in:
parent
453bdaaafc
commit
11db30ab3d
@ -313,8 +313,13 @@ begin
|
||||
end;
|
||||
|
||||
function LegacyChar2ExtendedGraphemeCluster(const Ch: Char): UnicodeString;
|
||||
var
|
||||
tmpS: RawByteString;
|
||||
begin
|
||||
Result := Ch;
|
||||
SetLength(tmpS, 1);
|
||||
tmpS[1]:=Ch;
|
||||
System.SetCodePage(tmpS,CP_OEMCP,False);
|
||||
Result:=tmpS;
|
||||
end;
|
||||
|
||||
procedure Enhanced2Legacy;
|
||||
|
Loading…
Reference in New Issue
Block a user