ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/testApp/TestApplication.pas
(Generate patch)

Comparing ibx/trunk/fbintf/testsuite/testApp/TestApplication.pas (file contents):
Revision 420 by tony, Thu Jun 22 13:52:39 2023 UTC vs.
Revision 421 by tony, Sat Oct 21 14:22:28 2023 UTC

# Line 604 | Line 604 | begin
604      if getIsNullable then writeln(OutFile,'Nullable') else writeln(OutFile,'Not Null');
605      writeln(OutFile,'Size = ',GetSize);
606      if not IsNull then
607 <      writeln(Outfile,'Value = ',getAsString);
607 >    begin
608 >      if getCharSetID = 1 then
609 >      begin
610 >        PrintHexString(getAsString);
611 >        writeln(Outfile);
612 >      end
613 >      else
614 >        writeln(Outfile,'Value = ',getAsString);
615 >    end;
616      writeln(OutFile);
617    end;
618   end;
# Line 1484 | Line 1492 | begin
1492    GetParams(DoPrompt,TestID);
1493    if length(TestID) = 1 then
1494      TestID := '0' + TestID;
1495 +  {$ifdef DCC}
1496 +  {$IF declared(SetConsoleOutputCP)}
1497 +  SetConsoleOutputCP(cp_utf8);
1498 +  {$IFEND}
1499    {$IF declared(SetTextCodePage)}
1500    {Ensure consistent UTF-8 output}
1501    SetTextCodePage(OutFile,cp_utf8);
1502    {$IFEND}
1503 <  {$IF declared(SetConsoleOutputCP)}
1492 <  SetConsoleOutputCP(cp_utf8);
1493 <  {$IFEND}
1494 <
1503 >  {$endif}
1504  
1505    {Ensure consistent date reporting across platforms}
1506    SetFormatSettings;
# Line 1582 | Line 1591 | end;
1591  
1592   procedure TTestApplication.SetFormatSettings;
1593   begin
1594 +   {$ifdef FPC}
1595 +   SetMultiByteConversionCodePage(cp_utf8);
1596 +   {$endif}
1597    {$IF declared(DefaultFormatSettings)}
1598    with DefaultFormatSettings do
1599    {$ELSE}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines