mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 10:38:14 +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 -
9 lines
118 B
ObjectPascal
9 lines
118 B
ObjectPascal
|
|
{$mode delphiunicode}
|
|
|
|
const r: rawbytestring = 'abc';
|
|
begin
|
|
if stringcodepage(r) = CP_NONE then
|
|
halt(1);
|
|
end.
|