[fpc-devel] twide3.pp on windows

Maxim Ganetsky ganmax at narod.ru
Mon Jul 16 23:09:49 CEST 2007


Vincent Snijders пишет:
> Yury Sidorov schreef:
>> From: "Daniël Mantione" <daniel.mantione at freepascal.org>
>>> 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:ganmax at narod.ru



More information about the fpc-devel mailing list