Skip to content
Commit c3bae8b6 authored by Mislav Marohnić's avatar Mislav Marohnić Committed by Benoit Daloze
Browse files

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.
parent 99fda28f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment