summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2023-09-01 19:37:27 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2023-09-01 19:37:27 +0100
commit3aa20f6e758a8f96841010d374ed24505d7d89ef (patch)
tree496bbe48c28c54d3f13b8640dff8f19a1bcb74ca /utf8.c
parenta99d7c63148e7d60c4368a711f6e0e7ff101b56a (diff)
Use %05X not %08X.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 202dda7f..282eb7bd 100644
--- a/utf8.c
+++ b/utf8.c
@@ -229,10 +229,10 @@ utf8_width(struct utf8_data *ud, int *width)
case 0:
return (UTF8_ERROR);
}
- log_debug("UTF-8 %.*s is %08X", (int)ud->size, ud->data, (u_int)wc);
+ log_debug("UTF-8 %.*s is %05X", (int)ud->size, ud->data, (u_int)wc);
#ifdef HAVE_UTF8PROC
*width = utf8proc_wcwidth(wc);
- log_debug("utf8proc_wcwidth(%08X) returned %d", (u_int)wc, *width);
+ log_debug("utf8proc_wcwidth(%05X) returned %d", (u_int)wc, *width);
#else
*width = wcwidth(wc);
log_debug("wcwidth(%05X) returned %d", (u_int)wc, *width);