[fpc-devel] twide3.pp on windows

Vincent Snijders vsnijders at quicknet.nl
Mon Jul 16 23:26:26 CEST 2007


Maxim Ganetsky schreef:
> 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);
> 

No, this does not work. GetACP still returns the system setting.

Vincent



More information about the fpc-devel mailing list