You need to sign in or sign up before continuing.
read user-defined compiler messages in source codepage
FPC doesn't read user-defined compiler messages in source codepage. That results in wrong output when the source codepage is different from the ACP codepage (e.g. utf-8 on Windows or a non-UTF-8 on Linux).
A test program that shows the bug on Windows:
{$codepage utf8}
program NoteTest;
begin
{$note ä}
{$warning ä}
{$error ä}
{$message warn ä}
{$message warn 'ä'}
end.
This patch fixes this bug.