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 compiler):
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"):

uses
  Windows;
begin
  WriteLn (GetACP);
  WriteLn (GetConsoleCP);

ACP is 1252
ConsoleCP 437


Mattias
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to