Recent

Author Topic: Windows Console working badly  (Read 1876 times)

ASBzone

  • Sr. Member
  • ****
  • Posts: 476
  • Automation leads to relaxation...
    • Free BrainWaveCC Console Utilities
Re: Windows Console working badly
« Reply #15 on: January 22, 2020, 04:38:22 am »
Here is the program. The first ñ look bad, the second and third looks fine.


Thanks.  Here is what I get.



-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.11 r63516 / FPC v3.2.1-r46879 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 2004 (Build 19041.508)
Other Systems: Windows 10 Pro x64, Version 2004 or greater

ASBzone

  • Sr. Member
  • ****
  • Posts: 476
  • Automation leads to relaxation...
    • Free BrainWaveCC Console Utilities
Re: Windows Console working badly
« Reply #16 on: January 22, 2020, 04:42:11 am »
I tried the following code, and ended up with the first two being bad.  I'm going to test the executable across my systems:

Code: Pascal  [Select][+][-]
  1. program Project1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. uses
  6.   {$IFDEF UNIX}
  7.   cthreads,
  8.   {$ENDIF}
  9.   LazUTF8, Classes
  10.   { you can add units after this };
  11.  
  12. const
  13.   MyChar = 'ñ';
  14.  
  15. var
  16.   MyString: string = 'ñ';
  17.  
  18. begin
  19.   writeln('ñ');
  20.   writeln(MyChar);
  21.   writeln(MyString);
  22.   writeln(UTF8ToAnsi('ñ'));
  23.   writeln(chr(164));
  24.   readln();
  25. end.
  26.  
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.11 r63516 / FPC v3.2.1-r46879 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 2004 (Build 19041.508)
Other Systems: Windows 10 Pro x64, Version 2004 or greater

ASBzone

  • Sr. Member
  • ****
  • Posts: 476
  • Automation leads to relaxation...
    • Free BrainWaveCC Console Utilities
Re: Windows Console working badly
« Reply #17 on: January 22, 2020, 04:46:02 am »
I ran the resulting executables from my Windows Servers, which are 2016 and 2019 (version 1809), and the output is the same.

I'll see if I can scrounge up a test box to recompile it on, which is running an older version of Windows, to see.
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.11 r63516 / FPC v3.2.1-r46879 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 2004 (Build 19041.508)
Other Systems: Windows 10 Pro x64, Version 2004 or greater

 

TinyPortal © 2005-2018