mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-25 09:05:47 -04:00
unicode combining: don't log overflow errors unless LOG_ENABLE_DBG == 1
This commit is contained in:
parent
e7d7b30c84
commit
fb001ee7a7
2 changed files with 4 additions and 1 deletions
|
|
@ -28,6 +28,8 @@
|
||||||
lines in the scrolling region..
|
lines in the scrolling region..
|
||||||
* New terminal windows spawned with `ctrl`+`shift`+`n` are no longer
|
* New terminal windows spawned with `ctrl`+`shift`+`n` are no longer
|
||||||
double forked.
|
double forked.
|
||||||
|
* Unicode combining character overflow errors are only logged in when
|
||||||
|
debug logging has been enabled.
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
|
||||||
3
vt.c
3
vt.c
|
|
@ -604,12 +604,13 @@ action_utf8_print(struct terminal *term, wchar_t wc)
|
||||||
if (wanted_count > ALEN(composed->combining)) {
|
if (wanted_count > ALEN(composed->combining)) {
|
||||||
assert(composed != NULL);
|
assert(composed != NULL);
|
||||||
|
|
||||||
|
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
LOG_WARN("combining character overflow:");
|
LOG_WARN("combining character overflow:");
|
||||||
LOG_WARN(" base: 0x%04x", composed->base);
|
LOG_WARN(" base: 0x%04x", composed->base);
|
||||||
for (size_t i = 0; i < composed->count; i++)
|
for (size_t i = 0; i < composed->count; i++)
|
||||||
LOG_WARN(" cc: 0x%04x", composed->combining[i]);
|
LOG_WARN(" cc: 0x%04x", composed->combining[i]);
|
||||||
LOG_ERR(" new: 0x%04x", wc);
|
LOG_ERR(" new: 0x%04x", wc);
|
||||||
|
#endif
|
||||||
/* This are going to break anyway... */
|
/* This are going to break anyway... */
|
||||||
wanted_count--;
|
wanted_count--;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue