commit | 23fdbc9ea6a6f5c93f042043f0407ed5d9bd0e5b | [log] [download] |
---|---|---|
author | nicm <nicm> | Wed Apr 27 09:36:25 2016 +0000 |
committer | nicm <nicm> | Wed Apr 27 09:36:25 2016 +0000 |
tree | ec0c98a2478987a3bc5e1b6ce8c243e6453c61bf | |
parent | d3546cc85cc0ed80011ec35c105ae92e1e254148 [diff] |
Loads of platforms appear to have old or broken Unicode character type information and are missing widths for relatively common Unicode characters (so mbtowc() works, but wcwidth() fails). So if wcwidth() returns -1, assume a width of 1 instead of ignoring the character.