Something went wrong. Try again.
Something went wrong. Try again.
docs(gwidth): state that ambiguous width is one column
The comment in eawToWidth said that East Asian Ambiguous characters take two columns in an East Asian context, but the code returns one for them in every case. The code is right: glibc's wcwidth gives them one column in every UTF-8 locale, including ja, ko and zh, and most current terminals draw them narrow by default. A terminal can be set to draw them wide, but no environment variable reports that, so a locale-based guess would mismeasure text on the terminals that keep the default. Correct the comment so it matches the code and no longer suggests that ambiguous width depends on the locale.
Author L.B.R. Committer Tim Culverhouse Date (Nov 7, 2026, 11:15 AM UTC) Commit
Copy SHA
Parent c1861acc c1861acc835e42d6874f2b15744f472398fbdfb7