fix wcwidth of hangul combining (vowel/final) letters
authorRich Felker <dalias@aerifal.cx>
Tue, 28 Dec 2021 01:08:31 +0000 (20:08 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 28 Dec 2021 01:08:31 +0000 (20:08 -0500)
commit775bde6b5c04ecc689ecbb4a25ceaf2ed6ab60c8
treeb50c32b49deea466e1bc3574ccb27442ab04b5b0
parent8d404733e1314ef633aa09a90865e94fe711b4ca
fix wcwidth of hangul combining (vowel/final) letters

these characters combine onto a base character (initial) and therefore
need to have width 0. the original binary-search implementation of
wcwidth handled them correctly, but a regression was introduced in
commit 1b0ce9af6d2aa7b92edaf3e9c631cb635bae22bd by generating the new
tables from unicode without noticing that the classification logic in
use (unicode character category Mn/Me/Cf) was insufficient to catch
these characters.
src/ctype/nonspacing.h