Felipe Monteiro de Carvalho wrote:
> 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.
They looked indeed better.
IMO, the parts within a ifdeff should be made short. Otherwise
maintainance will get hard.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives