Recent

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

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
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.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
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.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
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.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

 

TinyPortal © 2005-2018