mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Use %05X not %08X.
This commit is contained in:
@ -1035,7 +1035,7 @@ utf8_build_combined(void)
|
|||||||
wc = utf8_combined_table[i].first;
|
wc = utf8_combined_table[i].first;
|
||||||
mlen = wctomb(first.data, wc);
|
mlen = wctomb(first.data, wc);
|
||||||
if (mlen <= 0 || mlen > UTF8_SIZE) {
|
if (mlen <= 0 || mlen > UTF8_SIZE) {
|
||||||
log_debug("invalid combined character %08X", wc);
|
log_debug("invalid combined character %05X", wc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
first.size = mlen;
|
first.size = mlen;
|
||||||
|
4
utf8.c
4
utf8.c
@ -229,10 +229,10 @@ utf8_width(struct utf8_data *ud, int *width)
|
|||||||
case 0:
|
case 0:
|
||||||
return (UTF8_ERROR);
|
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
|
#ifdef HAVE_UTF8PROC
|
||||||
*width = utf8proc_wcwidth(wc);
|
*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
|
#else
|
||||||
*width = wcwidth(wc);
|
*width = wcwidth(wc);
|
||||||
log_debug("wcwidth(%05X) returned %d", (u_int)wc, *width);
|
log_debug("wcwidth(%05X) returned %d", (u_int)wc, *width);
|
||||||
|
Reference in New Issue
Block a user