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

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Dec 21 18:41:05 CET 2008

>> I used the Delphi-to-Lazarus convertion for my (Delphi) program. Why 
>> isn't it also converting to UTF-8 if that's necessary?
> Maybe we should consider removing the convert from the IDE, if it 
> misleads more than helps.

I don't think so, it's better than nothing. The problem is, that there 
are more pitfalls than the conversion routine handles (can handle?).

I just converted to UTF-8 but now got problems with constant strings in 
MessageBox calls which require Ansi instead of UTF-8. It's quite awkward 
if different codings are used within one source code file. I would have 
expected that one single encoding (UTF-8?) is used throughout all source 
code and all routines that need a different encoding do the conversion 
themselve. Now each programmer has to learn for each and every routine 
what encoding is used (and that's not even documented within the help 
for these routines).

Why confront the programmer with more complexity than needed? Especially 
those who start learning programming from scratch realy have a hard time 
if such (IMO unnecessary) things are not avoided.

Jürgen Hestermann.

More information about the fpc-pascal mailing list