[Lazarus] Does Lazarus support a complete Unicode Component Library?
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Feb 18 17:22:28 CET 2011
Michael Schnell schrieb:
> On 02/18/2011 04:12 PM, Hans-Peter Diettrich wrote:
>>
>> I see no chance for "hard to detect" problems, when some code has been
>> broken since ever.
>>
> I don't feel that the legacy (non-Unicode aware) instruction
> MyChar := MyString[Lengt(MyString)];
> to get the last character of a string is broken since ever, but I do
> feel that it has been used in thousands of projects.
Such code has been and still is valid for ASCII characters, like spaces,
directory separators etc., at the end of an string. It *happened* to
work with other SBCS encodings, but this was never guaranteed, and it
never worked for MBCS.
DoDi
More information about the Lazarus
mailing list