Skip to content

[chore] use gawk on MacOS#154

Merged
tatsumoto-ren merged 2 commits intoAjatt-Tools:masterfrom
Jostar1024:master
Jan 3, 2026
Merged

[chore] use gawk on MacOS#154
tatsumoto-ren merged 2 commits intoAjatt-Tools:masterfrom
Jostar1024:master

Conversation

@Jostar1024
Copy link
Copy Markdown
Contributor

MacOS's awk doesn't split the UTF-8 string correctly, so MacOS users can install GNU awk and use it instead.

The following case are covered:

  • Use gawk if it's installed
  • If not, the subprocess returns non-zero response.

I'm not familiar with Lua, so I don't know how to create a test case easily.

I wonder maybe the filename can be mocked somehow...

@Jostar1024
Copy link
Copy Markdown
Contributor Author

Oh, it's already implemented. I'll close the PR.

@Jostar1024 Jostar1024 closed this Dec 31, 2025
@tatsumoto-ren tatsumoto-ren reopened this Jan 3, 2026
@tatsumoto-ren tatsumoto-ren merged commit bda86f9 into Ajatt-Tools:master Jan 3, 2026
@tatsumoto-ren
Copy link
Copy Markdown
Member

I merged your comments regarding installing gawk on macOS.

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

Successfully merging this pull request may close these issues.

2 participants