fpc/tests/webtbs/tw28718b.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

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.