diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2010-12-06 18:30:39 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2010-12-06 18:30:39 +0000 |
commit | 4b27022ac79ba79c1a08cbf0beafd735f8837415 (patch) | |
tree | 5445760fcbdcde8bce3dfae496b9dcb5a40d2310 /epan/strutil.c | |
parent | 0bf5fcd6b3cf4ed0f67388fcc04b2eb2593c02fd (diff) | |
download | wireshark-4b27022ac79ba79c1a08cbf0beafd735f8837415.tar.gz |
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
Diffstat (limited to 'epan/strutil.c')
-rw-r--r-- | epan/strutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/strutil.c b/epan/strutil.c index f1a6d10d23..3779124730 100644 --- a/epan/strutil.c +++ b/epan/strutil.c @@ -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)) { |