Skip to content

Commit

Permalink
termdesc: disable octants if libc lacks support for unicode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Dec 25, 2024
1 parent 531bdd0 commit 054e31c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/termdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,10 @@ apply_term_heuristics(tinfo* ti, const char* tname, queried_terminals_e qterm,
if(wcwidth(L'🬸') < 0){
ti->caps.sextants = false;
}
// run a wcwidth(𜴀) to guarantee libc Unicode 16 support, independent of term
if(wcwidth(L'𜴀') < 0){
ti->caps.octants = false;
}
ti->termname = tname;
return 0;
}
Expand Down

0 comments on commit 054e31c

Please sign in to comment.