On 23.02.2018 11:18, Mattias Gaertner via Lazarus wrote:
Write and Writeln are pure compiler magic.
Apparently if the string is CP_ACP, it is passed unchanged to Output,
ignoring the DefaultSystemCodepage variable. Otherwise it converts the
string to the console codepage. This allows to write arbitrary bytes.
Maybe some compiler guru can confirm this.

Compiler gurus are reading fpc-devel :)

On 22.02.2018 22:26, Ondrej Pokorny via Lazarus wrote:
> It looks like writeln ignores the codepage for constant strings but checks it for "normal" strings. You should ask on fpc-devel list for details.

Ondrej
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to