fpc/tests/test/tcpstrsetlength.pp
2015-02-23 22:48:15 +00:00

18 lines
270 B
ObjectPascal

uses
{$ifdef unix}
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
{$endif unix}
SysUtils;
type
ts866 = type AnsiString(866);
var
a866 : ts866;
begin
a866 := '';
SetLength(a866,10);
if (StringCodePage(a866) <> 866) then
halt(1);
WriteLn('ok');
end.