Wireshark-bugs: [Wireshark-bugs] [Bug 1867] Pango-WARNING **: Invalid UTF-8 string passed to pan
Date: Fri, 28 Sep 2007 20:50:05 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1867





------- Comment #2 from stephentfisher@xxxxxxxxx  2007-09-28 20:50 GMT -------
Thanks for your bug report.  The Host Name field is the culprit.  The second
character is ASCII 0x90 (decimal 144), which is in the "extended ASCII" range
and does not fit into the UTF-8 encoding as I understand it.  The error message
is coming from pango because that is the library used to display text in GTK2+
widgets and it requires UTF-8 input.  A plain text host name (in ASCII range
1-127) displays just fine.  The SMB protocol PDU specifies in Flags2 that the
strings are not Unicode, but instead ASCII.

GLib documentation states that we should validate if a string from the network
is UTF8 before trying to display it, although I prefer the display it gives us
now (since it doesn't want to print the ASCII character itself, it displays a ?
mark) but without the warning.

Anyone have an idea on the best way to handle this?


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.