git-svn-id: trunk@34168 -
@@ -1,6 +1,22 @@
+{$ifdef go32v2}
+ {$define USE_FPWIDESTRING_UNIT}
+ {$define USE_UNICODEDUCET_UNIT}
+{$endif}
{$ifdef unix}
uses
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
+{$else}
+uses
+ {$ifdef USE_FPWIDESTRING_UNIT}
+ fpwidestring,
+ {$endif}
+ {$ifdef USE_UNICODEDUCET_UNIT}
+ unicodeducet,
+ { The unit strings is not really used here,
+ but simpifies the conditional construction
+ for fpwidestring and unicodeducet use }
+ strings;
{$endif}
type
@@ -1,9 +1,20 @@
{%skiptarget=wince}
{$codepage utf-8}
+
{$ifdef darwin}iosxwstr{$else}cwstring{$endif},
sysutils;
procedure doerror(i : integer);
{$endif unix}
procedure testwcmp;
@@ -1,4 +1,4 @@
-{ %skiptarget=win32,win64,wince,os2,emx }
+{ %skiptarget=win32,win64,wince,os2,emx,go32v2,msdos }
{ This test is only useful if the local codepage is utf-8 which
usually not the case on windows (and never can be the case on OS/2)
}
@@ -27,7 +27,7 @@ begin
writeln(t,'łóżka');
close(t);
reset(t);
-
try
read(t,wc);
if wc<>'ł' then
@@ -37,7 +37,7 @@ begin
// erase(t);
raise;
end;
readln(t,a);
@@ -1,8 +1,19 @@
@@ -1,9 +1,19 @@
@@ -16,7 +26,7 @@ begin
s:=w1;
w1:=s;
w2:=w1;
if (w1<>w2) then
halt(1);
w1[2]:='f';
@@ -44,4 +54,4 @@ end;
begin
testwcmp;
-end.
+end.
@@ -1,8 +1,25 @@
{$codepage utf8}