On 10/27/06, Marc Weustink <[EMAIL PROTECTED]> wrote:
> WideSize := Utf8ToUnicode(nil, ButtonCaption, 0);
> WideText := GetMem(WideSize * 2);
Are you sure about the 2 here ? I wouldn't rely on that. As I wrote in
another mail, Utf8ToUnicode should return the number of bytes and not
the number of chars. Since the number of chars is irrelevant.
I looked at the implementation and it returns the number of chars. But
this shouldn't metter much for us, as Sergei proposed some
modifications that allow us to avoid using this function.
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives