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

JoshyFun joshyfun at gmail.com
Sat Dec 20 23:52:45 CET 2008


Hello Jürgen,

Saturday, December 20, 2008, 6:46:06 PM, you wrote:

JH> Form1.ListBox1.Items.Add(AnsiToUTF8('ööööööööööööö'));
JH> Form1.ListBox1.Items.Strings[Count-1] := (AnsiToUTF8('ööööööööööööö'));
JH> How is this supposed to work? Even if the wrong coding is used I don't
JH> understand why the whole string is dropped when not using AnsiToUTF8.
JH> Without the conversion I would expect to see incorrect characters 
JH> instead of the umlauts.

The UTF8Decode routine kills any string with malformed UTF8 sequences.

http://bugs.freepascal.org/view.php?id=11791

-- 
Best regards,
 JoshyFun




More information about the fpc-pascal mailing list