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 | |
| parent | Merge branch 'faster-unicode' (diff) | |
unicode combining: don't log overflow errors unless LOG_ENABLE_DBG == 1
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | vt.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ef18f4d4..7ac1f035 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ lines in the scrolling region.. * New terminal windows spawned with `ctrl`+`shift`+`n` are no longer double forked. +* Unicode combining character overflow errors are only logged in when + debug logging has been enabled. ### Deprecated @@ -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--; } |
