mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 14:23:25 +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 -
18 lines
311 B
ObjectPascal
18 lines
311 B
ObjectPascal
{$codepage cp1258}
|
|
|
|
{ should cancel/override the codepage setting above }
|
|
{$modeswitch systemcodepage}
|
|
|
|
program tw28718a;
|
|
|
|
{ should restore the compiler's default code page (-> CP_ACP) }
|
|
{$modeswitch systemcodepage-}
|
|
|
|
var
|
|
a: ansistring;
|
|
begin
|
|
a:='abc';
|
|
if stringcodepage(a)<>CP_ACP then
|
|
halt(1);
|
|
end.
|