Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when using gawk #2

Open
phyver opened this issue Jun 14, 2022 · 2 comments
Open

error when using gawk #2

phyver opened this issue Jun 14, 2022 · 2 comments

Comments

@phyver
Copy link

phyver commented Jun 14, 2022

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
Copy link
Owner

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
Copy link
Author

phyver commented Jun 16, 2022

Thanks. I'll leave it commented then, as I'm not sure I'll have time to look into it in the foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants