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

Fix fixing JRuby shebangs on macOS #2280

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Fix fixing JRuby shebangs on macOS #2280

merged 1 commit into from
Oct 23, 2023

Commits on Oct 23, 2023

  1. Fix fixing JRuby shebangs on macOS

    LC_CTYPE is "utf-8" on macOS, which instructs utilities like `tr` to expect Unicode input. However, in case of binary files, which we here explicitly guard against, the utility will fail because of invalid input encoding.
    
    The solution is to set LC_CTYPE=C which effectively removes the expectation around input encoding and allows `tr` to process the input byte-by-byte.
    mislav committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1cb721b View commit details
    Browse the repository at this point in the history