[Gambas-user] TextArea and the NUL byte

Benoît Minisini gambas at ...1...
Fri May 8 08:33:56 CEST 2015


Le 07/05/2015 21:48, Benoît Minisini a écrit :
> Le 07/05/2015 19:38, Tobias Boege a écrit :
>> Hi Benoit,
>>
>> we had a case where someone stumbled upon the fact that TextAreas can't
>> deal properly with strings containing the ASCII NUL. In the attached
>> project, I fill a TextArea with the string "\0some string" and it gives
>>
>>    txtArea.Length           = 12
>>    String.Len(txtArea.Text) = 0
>>    txtArea.Text             = Null
>>
>> This is not consistent. I already told him to put only printable
>> characters
>> into the GUI, but wanted to ask if this would be considered a bug.
>>
>> Regards,
>> Tobi
>>
>
> I think it is a bug in gb.qt4, where conversion between UTF-8 and QT4
> strings use intermediate zero-terminated strings. I will check if
> something can be done...
>

Fixed in revision #7061!

Regards,

-- 
Benoît Minisini




More information about the User mailing list