mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 19:30:21 +02:00
lazutils: paswstring: clean up
git-svn-id: trunk@47095 -
This commit is contained in:
parent
a4c4c3a904
commit
a937271d53
@ -339,11 +339,8 @@ begin
|
||||
// Copy the originating string taking into account the specified length
|
||||
SetLength(ansistr, len);
|
||||
System.Move(source^, ansistr[1], len);
|
||||
|
||||
{$ifdef PASWSTRING_SUPPORT_NONUTF8_ANSISTRING}
|
||||
// Convert to UTF-8
|
||||
ansistr := ConvertEncoding(ansistr, GetDefaultTextEncoding(), EncodingUTF8);
|
||||
{$endif}
|
||||
// Now convert it, using UTF-8 -> UTF-16
|
||||
dest := UTF8ToUTF16(ansistr);
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user