Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Mar 8, 2025

On macOS, Perl-compatible regex option (-P) in GNU grep is not available by default. It can be replaced with sed. While using 'tr', it is necessary to set the locale to "C" ensures that tr interprets the byte stream in a consistent, ASCII-only manner. This prevents errors like "Illegal byte sequence" on BSD systems such as macOS.

Change-Id: I1c134092a5fb2afc8018a638e172fb0b380e0fdd

On macOS, Perl-compatible regex option (-P) in GNU grep is not available
by default. It can be replaced with sed. While using 'tr', it is
necessary to set the locale to "C" ensures that tr interprets the byte
stream in a consistent, ASCII-only manner. This prevents errors like
"Illegal byte sequence" on BSD systems such as macOS.

Change-Id: I1c134092a5fb2afc8018a638e172fb0b380e0fdd
@jserv jserv merged commit b36c6b1 into master Mar 8, 2025
4 checks passed
@jserv jserv deleted the fix-bsd-compatibility branch March 8, 2025 19:35
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.

1 participant