mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 14:31:59 +02:00

when assigning a string constant to a rawbytestring (system code page with {$modeswitch systemcodepage}, CP_ACP without) (mantis #25332) git-svn-id: trunk@26397 -
10 lines
173 B
ObjectPascal
10 lines
173 B
ObjectPascal
|
|
{mode delphiunicode}
|
|
|
|
const r: rawbytestring = 'abc';
|
|
begin
|
|
if (stringcodepage(r) <> CP_ACP) and
|
|
(stringcodepage(r) <> DefaultSystemCodePage) then
|
|
halt(1);
|
|
end.
|