mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 12:09:32 +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 -
17 lines
315 B
ObjectPascal
17 lines
315 B
ObjectPascal
{ %opt=-Fccp1258 -Msystemcodepage }
|
|
|
|
{ disabling the systemcodepage after enabling it goes back to the default
|
|
setting, there is no stack of previously set code pages }
|
|
|
|
{$modeswitch systemcodepage-}
|
|
|
|
program tw28718c;
|
|
|
|
var
|
|
a: ansistring;
|
|
begin
|
|
a:='abc';
|
|
if stringcodepage(a)<>CP_ACP then
|
|
halt(1);
|
|
end.
|