[fpc-devel] Unicode support (again)

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Nov 11 11:24:38 CET 2008


On 11 Nov 2008, at 10:48, Michael Schnell wrote:

> Moreover, IMHO, it should be configurable if in "D2009 compatible  
> mode", with s[i], length(s), pos(), copy, delete(), ..., Strings are  
> counted in subcodes (fast behavior) or in "whatever mode" they are  
> counted in characters ("friendly old school behavior")

It will at best be "friendly old school behaviour which works most of  
the time, but which fails as soon as the strings are not completely  
normalised because then you can have decomposed characters and  
whatnot" (which in turn easily leads to security holes due to  
incomplete checks, hard to reproduce bugs and "write once, debug  
everywhere"-style behaviour).


Jonas



More information about the fpc-devel mailing list