[Lazarus] In NeedRTLAnsi, can GetACP return CP_UTF8 on Windows?

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Nov 8 22:31:03 CET 2011


On Tue, Nov 8, 2011 at 9:50 PM, cobines <cobines at gmail.com> wrote:
> FNeedRTLAnsi:=GetACP<>CP_UTF8;

This is used by FileUtil in Windows for Windows 9x support

> Is it possible that CP_UTF8 will ever be returned by GetACP?

I've never heard of a Windows localization where this occurs.

> I know that CP_UTF8 exists on the list of codepages but I suspect it
> has only been added for use in functions like MultiByteToWideChar,
> SetConsoleOutputCP.

This is my understanding too.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list