forked from osmocom/wireshark
Change format_text() and format_text_wsp() to use g_unichar_isprint() for
UTF-8 support instead of isprint(). This allows the middle packet details pane to display UTF-8 strings instead of escaping them with \xxx notation. svn path=/trunk/; revision=35131
This commit is contained in:
parent
0bf5fcd6b3
commit
4b27022ac7
|
@ -187,7 +187,7 @@ format_text(const guchar *string, size_t len)
|
|||
}
|
||||
c = *string++;
|
||||
|
||||
if (isprint(c)) {
|
||||
if (g_unichar_isprint(c)) {
|
||||
fmtbuf[idx][column] = c;
|
||||
column++;
|
||||
} else {
|
||||
|
@ -293,7 +293,7 @@ format_text_wsp(const guchar *string, size_t len)
|
|||
}
|
||||
c = *string++;
|
||||
|
||||
if (isprint(c)) {
|
||||
if (g_unichar_isprint(c)) {
|
||||
fmtbuf[idx][column] = c;
|
||||
column++;
|
||||
} else if (isspace(c)) {
|
||||
|
|
Loading…
Reference in New Issue