[fpc-devel] fpc compiler wrong encoding in console output on Windows
nc-gaertnma at netcologne.de
Wed Aug 30 13:49:50 CEST 2023
On 30.08.23 12:04, Tomas Hajny via fpc-devel wrote:
> On 2023-08-28 15:53, Ondrej Pokorny via fpc-devel wrote:
> Your output is different from mine (using a freshly compiled trunk
> Free Pascal Compiler version 3.3.1 [2023/08/29] for i386
> Copyright (c) 1993-2023 by Florian Klaempfl and others
> Target OS: Win32 for i386
> Compiling t2.pas
> t2.pas(4,2) Note: User defined: ä
Then you don't have default windows setup. Maybe you installed the cp 65001?
> However, I run the compiler from regular command line, not from Lazarus.
I get the same in cmd.exe and via TProcess.
>[...] What do you get when running the following test program (you can
> simulate the same conditions e.g. by naming the resulting binary fpc.exe
> and configuring Lazarus to use this "compiler"):
> WriteLn (GetACP);
> WriteLn (GetConsoleCP);
ACP is 1252
More information about the fpc-devel