> 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.


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to