fpc/tests/webtbs/tw28718d.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 #28718)

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

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.