Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / test / tcpstr12.pp
Size: Mime:
program tcpstr12;

// check that 'test' constants assigned to ansistring variables have different codepage

{$mode delphi}
type
  cp866 = type AnsiString(866);
var
  A: cp866;
  B: AnsiString;
begin
  B := 'test';
//  if StringCodePage(B) <> DefaultSystemCodePage then
//    halt(1);
  A := 'test';
  if StringCodePage(A) <> 866 then
    halt(2);
end.