mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 07:43:04 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			623 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			623 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{$ifdef go32v2}
 | 
						|
  {$define USE_INTERNAL_UNICODE}
 | 
						|
{$endif}
 | 
						|
 | 
						|
{$ifdef USE_INTERNAL_UNICODE}
 | 
						|
  {$define USE_FPWIDESTRING_UNIT}
 | 
						|
  {$define USE_UNICODEDUCET_UNIT}
 | 
						|
  {$define USE_CPALL_UNIT}
 | 
						|
{$endif}
 | 
						|
uses
 | 
						|
{$ifdef unix}
 | 
						|
  {$ifdef darwin}iosxwstr{$else}cwstring{$endif},
 | 
						|
{$endif unix}
 | 
						|
 {$ifdef USE_UNICODEDUCET_UNIT}
 | 
						|
  unicodeducet,
 | 
						|
 {$endif}
 | 
						|
 {$ifdef USE_FPWIDESTRING_UNIT}
 | 
						|
  fpwidestring,
 | 
						|
 {$endif}
 | 
						|
 {$ifdef USE_CPALL_UNIT}
 | 
						|
  cpall,
 | 
						|
 {$endif}
 | 
						|
  sysutils;
 | 
						|
 | 
						|
type
 | 
						|
  ts866 = type AnsiString(866);
 | 
						|
var
 | 
						|
  a866 : ts866;
 | 
						|
begin
 | 
						|
  a866 := '';
 | 
						|
  SetLength(a866,10);
 | 
						|
  if (StringCodePage(a866) <> 866) then
 | 
						|
    halt(1);
 | 
						|
  WriteLn('ok');
 | 
						|
end.
 |