diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-06-09 15:31:58 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-06-09 15:31:58 +0000 |
| commit | fb001ee7a72ae054fff742f66c7917e337a42d71 (patch) | |
| tree | fc18bcd99a65ef6cb002db205c7d6d24450526b4 /vt.c | |
| parent | Merge branch 'faster-unicode' (diff) | |
unicode combining: don't log overflow errors unless LOG_ENABLE_DBG == 1
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -604,12 +604,13 @@ action_utf8_print(struct terminal *term, wchar_t wc) if (wanted_count > ALEN(composed->combining)) { assert(composed != NULL); +#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG LOG_WARN("combining character overflow:"); LOG_WARN(" base: 0x%04x", composed->base); for (size_t i = 0; i < composed->count; i++) LOG_WARN(" cc: 0x%04x", composed->combining[i]); LOG_ERR(" new: 0x%04x", wc); - +#endif /* This are going to break anyway... */ wanted_count--; } |
