fpc/tests/webtbs/tw28718a.pp
Jonas Maebe 2cf8e50771 * fixed unwanted disabling of a codepage set via -FcXXX/{$codepage XXX}
when {$modeswitch systemcodepage} gets disabled without having been
    enabled first (such as when initially setting the syntax mode)
    (mantis )

git-svn-id: trunk@31831 -
2015-09-25 18:31:58 +00:00

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.