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 Commit Parent c1861acc
+4 -2
1 changed file
+4 -2
1 changed file