[fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support

Marco van de Voort marcov at stack.nl
Tue Sep 15 13:40:15 CEST 2009


In our previous episode, Micha Nelissen said:
> Graeme Geldenhuys wrote:
> >   MyString := '????';
> >   MyChar := MyString[1];
> >   writeln(MyChar);
> > end.
> 
> Extracting a Char from a UnicodeString? What's that supposed to do?

CHAR is a 16-bit wchar in D2009.  Simularly, pchar is a pointer to a 16-bits
char. (pansichar being the 1-byte one).

So D2009 is revolution, not evolution, and NOT backwards compatible. The
question if FPC should do the same. And if so, when.

Also note that the portability aspects of the D2009 haven't really worked
out at all atm. (doing everything in UTF-16 on basically UTF-8 platforms is
IMHO not sane)




More information about the fpc-devel mailing list