Jakub Zawadzki
changed
bug 9323
Comment # 11
on bug 9323
from Jakub Zawadzki
(In reply to comment #10)
> Fixed in r52905 and put on the roadmap for 1.10.3 and 1.8.11.
I'm not a fan of this patch.
In FT_STRING[Z] value we must always have UTF-8 encoded string,
but if have some protocol using ISO-8859-* encoding or other original *length*
of string can be shorter than generated UTF-8 sequence sequence.
For example in tvb we have got str[] = "żążółć gęślą jaźń" encoded in
ISO-8859-2
it takes *17* bytes, after converting it to UTF-8 it takes 28 bytes.
If we do strndup(utf8_str, 17): we're getting: żążółć gę<truncated utf-8
sequence>.
I think my analysis are correct, during this week I'll try to reproduce this
issue.
Cheers,
Kuba.
You are receiving this mail because:
- You are watching all bug changes.