mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 01:19:38 +01:00 
			
		
		
		
	- emit ansistring constants with compiler codepage if no codepage is explicitly set - set default compiler codepage to default system codepage (delphi compatible) + tests git-svn-id: trunk@19145 -
		
			
				
	
	
		
			13 lines
		
	
	
		
			202 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			202 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
program tcpstr10;
 | 
						|
{$apptype console}
 | 
						|
{$codepage cp866}
 | 
						|
begin
 | 
						|
  if StringCodePage('test') <> 866 then
 | 
						|
  begin
 | 
						|
    WriteLn(StringCodePage('test'), ' <> ', 866);
 | 
						|
    halt(1);
 | 
						|
  end;
 | 
						|
  Writeln('ok');
 | 
						|
end.
 | 
						|
 |