summaryrefslogtreecommitdiff
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2010-12-06 18:30:39 +0000
committerStephen Fisher <steve@stephen-fisher.com>2010-12-06 18:30:39 +0000
commit4b27022ac79ba79c1a08cbf0beafd735f8837415 (patch)
tree5445760fcbdcde8bce3dfae496b9dcb5a40d2310 /epan/strutil.c
parent0bf5fcd6b3cf4ed0f67388fcc04b2eb2593c02fd (diff)
downloadwireshark-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.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)) {