[fpc-devel] FPC 2.3.1 seems a mixed mess with Unicode support
Micha Nelissen
micha at neli.hopto.org
Tue Sep 15 13:43:03 CEST 2009
Marco van de Voort wrote:
> 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).
And if MyChar is declared as a WideChar? Then it does work? Isn't it
like assigning a LongInt to an Integer? It might be cut, screwed or stay
the same (depending on sizeof(Integer)).
Micha
More information about the fpc-devel
mailing list