error when using `gawk`
Opened this issue · 2 comments
phyver commented
Using wcwidth.awk
with gawk and a UTF-8 locale fails:
$ make
gawk
- sanity check: gawk: wcwidth.awk:104: error: Invalid collation character: /^([-][-][ -~]*)+/
It does seem to work with mawk
, or with gawk
with the C locale though.
Commenting out the lines 104-112 solves the problem, but I'm not sure what it impacts.
ericpruitt commented
This is strange. I'm guessing something in GAWK changed since the error appears with older versions of this code. Until I can figure this out, deleting those lines won't impact functionality. That block is purely a performance optimization that doesn't impact the output which is why the tests still pass.
phyver commented
Thanks. I'll leave it commented then, as I'm not sure I'll have time to look into it in the foreseeable future.