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


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to