|
@@ -1,36 +1,35 @@
|
|
|
-{$CODEPAGE cp437}
|
|
|
-
|
|
|
{$ifdef unix}
|
|
|
uses
|
|
|
cwstring;
|
|
|
{$endif}
|
|
|
|
|
|
type
|
|
|
- tcpstr437 = type AnsiString(437);
|
|
|
- tcpstr850 = type AnsiString(850);
|
|
|
+ tcpstr1 = type AnsiString(1252);
|
|
|
+ tcpstr2 = type AnsiString(1251);
|
|
|
var
|
|
|
- a1 : tcpstr437;
|
|
|
+ a1 : tcpstr1;
|
|
|
a2 : utf8string;
|
|
|
- a3 : tcpstr850;
|
|
|
+ a3 : tcpstr2;
|
|
|
u1 : unicodestring;
|
|
|
begin
|
|
|
- a1:=#132;
|
|
|
+ a1:=' ';
|
|
|
+ a1[1]:=char($80); // Euro symbol in cp1252
|
|
|
a2:=a1;
|
|
|
- if ord(a2[1])<>195 then
|
|
|
+ if ord(a2[1])<>$E2 then
|
|
|
halt(1);
|
|
|
- if ord(a2[2])<>164 then
|
|
|
+ if ord(a2[2])<>$82 then
|
|
|
halt(2);
|
|
|
|
|
|
writeln('---');
|
|
|
|
|
|
a3:=a1;
|
|
|
- if ord(a3[1])<>132 then
|
|
|
+ if ord(a3[1])<>$88 then
|
|
|
halt(3);
|
|
|
|
|
|
writeln('---');
|
|
|
|
|
|
u1:=a1;
|
|
|
- if ord(u1[1])<>228 then
|
|
|
+ if ord(u1[1])<>$20AC then
|
|
|
halt(4);
|
|
|
|
|
|
writeln('ok');
|