[fpc-devel] " crt garbles writeln() output " feedback: other problems; not crt specific; command line parameters

peter green plugwash at P10Link.net
Tue May 23 19:22:31 CEST 2006


> However (as Maxim Ganetsky, who invented the patch, noted) the
> windows console is a mess.
It is indeed. Windows uses the ANSI code page for most GUI stuff but uses
the OEM code page for the console (at least by default i belive there may be
ways to change it). In MOST cases the ANSI and OEM code pages are
significantly different!

{ansi|short}string <-> widestring conversion is not really possible to do
right automatically. The compiler simply can't know what character set the
{ansi|short}string is meant to represent! It defaults to ISO-8859-1 (aka
direct code value mapping) which at least provides round trip compatibility
but apps that care are strongly advised to either register thier own
conversion functions or avoid automatic ansistring <-> widestring
conversions.





More information about the fpc-devel mailing list