mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 05:39:27 +02:00

- emit ansistring constants with compiler codepage if no codepage is explicitly set - set default compiler codepage to default system codepage (delphi compatible) + tests git-svn-id: trunk@19145 -
14 lines
308 B
ObjectPascal
14 lines
308 B
ObjectPascal
program tcpstr9;
|
|
{$apptype console}
|
|
begin
|
|
// this test can be only run with the compiler built right now on the
|
|
// same system
|
|
if StringCodePage('test') <> DefaultSystemCodePage then
|
|
begin
|
|
WriteLn(StringCodePage('test'), ' <> ', DefaultSystemCodePage);
|
|
halt(1);
|
|
end;
|
|
Writeln('ok');
|
|
end.
|
|
|