|
@@ -2,13 +2,38 @@ program tcpstr13;
|
|
|
|
|
|
// check that copy operation converts from 866 to DefaultSystemCodePage encoding
|
|
|
|
|
|
+{$ifdef go32v2}
|
|
|
+ {$define USE_INTERNAL_UNICODE}
|
|
|
+{$endif}
|
|
|
+
|
|
|
+{$ifdef USE_INTERNAL_UNICODE}
|
|
|
+ {$define USE_FPWIDESTRING_UNIT}
|
|
|
+ {$define USE_UNICODEDUCET_UNIT}
|
|
|
+ {$define USE_CPALL_UNIT}
|
|
|
+{$endif}
|
|
|
{$mode delphi}
|
|
|
|
|
|
{$ifdef unix}
|
|
|
uses
|
|
|
{$ifdef darwin}iosxwstr{$else}cwstring{$endif};
|
|
|
+{$else}
|
|
|
+uses
|
|
|
+ {$ifdef USE_FPWIDESTRING_UNIT}
|
|
|
+ fpwidestring,
|
|
|
+ {$endif}
|
|
|
+ {$ifdef USE_UNICODEDUCET_UNIT}
|
|
|
+ unicodeducet,
|
|
|
+ {$endif}
|
|
|
+ {$ifdef USE_CPALL_UNIT}
|
|
|
+ cpall,
|
|
|
+ {$endif}
|
|
|
+ { The unit strings is not really used here,
|
|
|
+ but simpifies the conditional construction
|
|
|
+ for fpwidestring and unicodeducet use }
|
|
|
+ strings;
|
|
|
{$endif}
|
|
|
|
|
|
+
|
|
|
type
|
|
|
ts866 = type ansistring(866);
|
|
|
|