aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-06 18:30:39 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-06 18:30:39 +0000
commitbb7387280cc2a4db7a5aca7ca247dbd36a80f0bb (patch)
tree5445760fcbdcde8bce3dfae496b9dcb5a40d2310 /epan/strutil.c
parente3bf56d25368c2cb0de3c3e8f0fac172afb96cdf (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35131 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c4
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)) {