mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-15 14:46:14 +02:00
38 lines
485 B
ObjectPascal
38 lines
485 B
ObjectPascal
{$CODEPAGE cp437}
|
|
|
|
{$ifdef unix}
|
|
uses
|
|
cwstring;
|
|
{$endif}
|
|
|
|
type
|
|
tcpstr437 = type AnsiString(437);
|
|
tcpstr850 = type AnsiString(850);
|
|
var
|
|
a1 : tcpstr437;
|
|
a2 : utf8string;
|
|
a3 : tcpstr850;
|
|
u1 : unicodestring;
|
|
begin
|
|
a1:=#132;
|
|
a2:=a1;
|
|
if ord(a2[1])<>195 then
|
|
halt(1);
|
|
if ord(a2[2])<>164 then
|
|
halt(2);
|
|
|
|
writeln('---');
|
|
|
|
a3:=a1;
|
|
if ord(a3[1])<>132 then
|
|
halt(3);
|
|
|
|
writeln('---');
|
|
|
|
u1:=a1;
|
|
if ord(u1[1])<>228 then
|
|
halt(4);
|
|
|
|
writeln('ok');
|
|
end.
|