merge r14130 from cpstrnew branch by paul:

pass unicodestring to rawbytestring arguments with converting to default system code page

git-svn-id: trunk@19091 -
This commit is contained in:
paul 2011-09-17 11:34:42 +00:00
parent 067b863b1b
commit 848ca6b0c0

View File

@ -320,7 +320,11 @@ begin
result:='';
Size:=Length(S2);
if Size>0 then
begin
if cp=$ffff then
cp:=DefaultSystemCodePage;
widestringmanager.Unicode2AnsiMoveProc(PUnicodeChar(Pointer(S2)),result,cp,Size);
end;
end;