[fpc-devel] Unicode support (yet again)
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Sep 14 19:24:30 CEST 2011
Michael Schnell schrieb:
> On 09/14/2011 11:05 AM, Marco van de Voort wrote:
>> First and for all. Backwards compat dropping is not going to happen.
>
> It already has and supposedly can't be avoided. Take a look of what
> Lazarus was forced to make out of the identity of ANSIString and
> UTF8String seemingly forced by FPC. e.g.:
>
> Old programs assuming local ANSI 8 bit code retrieved from LCL GUI
> components, compiled with the new version don't work (e.g. if doing
> myChar := myString[3]; )
How many bytes must a char have, when it shall allow to store any
(logical) character? Unicode users have no use for an char type, instead
they have to use substrings for every logical character. A Unicode BMP
user could be happy with a 2-byte char, of course, at his own (low) risk.
DoDi
More information about the fpc-devel
mailing list