[fpc-devel] simple UTF tests

Marco van de Voort marcov at stack.nl
Mon Jan 9 10:32:34 CET 2012

In our previous episode, Michael Schnell said:
> > You're right, the XE compiler lacks some error checks :-(
> >
> If this indeed is considered a bug in Delphi, FPC _could_ in fact in a 
> more sane way provide the length of an "AnsiString(CP_UTF16)" in terms 
> of Words (i.e. UTF codes, as done with UTF8),

An ansistring is always 8-bit. Nothing can be done there, except warn/error
if 1200 is used.

More information about the fpc-devel mailing list