[fpc-pascal] TListBox bug in LCL of Lazarus?

Joost van der Sluis joost at cnoc.nl
Mon Dec 22 11:40:02 CET 2008


Op maandag 22-12-2008 om 10:08 uur [tijdzone +0100], schreef Jürgen
Hestermann:
> 
> 99% of my problems with this issue would have been avoided if not the
> whole string is dropped in case that a string is not conform to
> UFT-8. That doesn't make any sense. If it's such an error why not
> raise 
> an exception instead of silently doing nothing? But it would be
> better 
> to just drop malformed characters but not the whole string so a user 
> would immediately see that something is wrong with the coding.

iirc it's windows that does this. If the winapi encounters characters in
a string for a messagebox it doesn't understand, it drops the whole
string. There's nothing Lazarus can do about it.

Joost




More information about the fpc-pascal mailing list