mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:28:08 +02:00

when {$modeswitch systemcodepage} gets disabled without having been enabled first (such as when initially setting the syntax mode) (mantis #28718) git-svn-id: trunk@31831 -
16 lines
228 B
ObjectPascal
16 lines
228 B
ObjectPascal
{$codepage cp1258}
|
|
|
|
{ should not have any effect, since the setting was not enabled }
|
|
|
|
{$modeswitch systemcodepage-}
|
|
|
|
program tw28718b;
|
|
|
|
var
|
|
a: ansistring;
|
|
begin
|
|
a:='abc';
|
|
if stringcodepage(a)<>1258 then
|
|
halt(1);
|
|
end.
|