Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 42727: /trunk/epan/ /trunk/epan/: strutil.c

Date: Sun, 20 May 2012 18:32:45 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42727

User: darkjames
Date: 2012/05/20 11:32 AM

Log:
 Revert r35131 fix bug #5738
 
 g_unichar_isprint() is for *wide characters*.
 For UTF-8 multibyte characters we could 
 use g_utf8_validate() and g_utf8_next_char(),
 but IMHO format_text_* should be ASCII-only.
 
 We rather need to store encoding of FT_STRING[Z]
 and in proto_item_fill_label() call appropiate
 function.
 For ENC_ASCII use format_text(),
 for unicode (ENC_UTF*, ENC_UCS*) use format_text_utf(),
 etc..

Directory: /trunk/epan/
  Changes    Path          Action
  +2 -2      strutil.c     Modified