Open the file in Notepad++, in the statusbar you see that it detects the encoding of the file as OEM866. In Notepad++, select "Encoding" > "Convert to UTF8 without BOM", save. When you now open the file in Lazarus, the comments should be correct.
Could share the file, I'm under Linux, I cannot see anything!
Memory tells me that gw basic was tokenized .
Dear allCould you try to compile the source code *.pasI have this errors:bp.pas :Code: Pascal [Select][+][-]fpc "bp.pas" (in directory: /home/developer/wip/MetOrbDet/BasPas)Free Pascal Compiler version 3.2.0+dfsg-12 [2021/01/25] for x86_64Copyright (c) 1993-2020 by Florian Klaempfl and othersTarget OS: Linux for x86-64Compiling bp.pasbp.pas(102,17) Warning: Local variable "a" of a managed type does not seem to be initializedbp.pas(185,33) Warning: Local variable "dummy3" of a managed type does not seem to be initializedbp.pas(358,55) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(385,31) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(405,37) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(733,47) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(738,47) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(784,55) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"bp.pas(1083,36) Error: String types have to match exactly in $V+ modebp.pas(1433) Fatal: There were 7 errors compiling module, stoppingFatal: Compilation abortedError: /usr/bin/ppcx64 returned an error exitcodeCompilation failed. rbp.pasCode: Pascal [Select][+][-]fpc "rbp.pas" (in directory: /home/developer/wip/MetOrbDet/BasPas)Free Pascal Compiler version 3.2.0+dfsg-12 [2021/01/25] for x86_64Copyright (c) 1993-2020 by Florian Klaempfl and othersTarget OS: Linux for x86-64Compiling rbp.pasrbp.pas(93,40) Error: Call by var for arg no. 1 has to match exactly: Got "AnsiString" expected "ShortString"rbp.pas(132) Fatal: There were 1 errors compiling module, stoppingFatal: Compilation abortedError: /usr/bin/ppcx64 returned an error exitcodeCompilation failed. thanks!
I cant compile ...