Vincent Snijders пишет:
Yury Sidorov schreef:
From: "Daniël Mantione" <[EMAIL PROTECTED]>
Op Mon, 16 Jul 2007, schreef Yury Sidorov:
> > There must be, because the CRT unit currently seems to do such >
> vodoo
> > (which is questionable behaviour by the way).
>
<snip>
I changed my windows settings to Polish and it now uses codepage 1250
(before it was 1252), now it runs successfully.
I think the hack from CRT unit can be useful here too.
Just do:
OldConsoleOutputCP:=GetConsoleOutputCP;
SetConsoleOutputCP(1250);
at the beginning of test and
SetConsoleOutputCP(OldConsoleOutputCP);
at the end.
OldConsoleOutputCP is of type Word.
--
Best regards,
Maxim Ganetsky mailto:[EMAIL PROTECTED]
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel