[fpc-devel] natural unicode support for WinNT via UTF-8
Florian Klaempfl
florian at freepascal.org
Sat Apr 16 10:32:07 CEST 2005
DrDiettrich wrote:
> "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?
Probably ;) E.g. the whole file handling stuff uses the "A-versions" so
it would require to make here at least overloaded versions. More
complicated would be the file records, they store the names as char arrays.
>
> DoDi
>
>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list