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:
Stephen Fisher 2010-12-06 18:30:39 +00:00
parent 0bf5fcd6b3
commit 4b27022ac7
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {