[fpc-devel] natural unicode support for WinNT via UTF-8

DrDiettrich drdiettrich at compuserve.de
Fri Apr 15 14:14:36 CEST 2005


"Yury B." wrote:

>     Two RTLs should be for Win32, one compiled for ANSI/DBCS and the other for
>     UNICODE UCS-2 (WinNT), where a special type,
>     say TUniString is AnsiString in the first version and
>     UnicodeString in the second version.
>     What do you think of it?

IMO there exists no need for separate libraries. The A and W versions of
WinAPI functions are (? can be) overloaded, so that it's simply up to
the coder to provide the appropriately typed parameters.

You can define types wchar_t etc. and set these to AnsiChar or WideChar,
as desired.

Did I miss something?

DoDi






More information about the fpc-devel mailing list