-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support non-utf8 scripts in SIP handling (#2948)
* Read only the shebang as a string. When reading the shebang, read just the first line of the file. When creating the patched script, don't try to decode the rest of the file contents to a string, just copy the bytes over. * rename var * changelog * CR: docs Co-authored-by: Gemma <[email protected]> --------- Co-authored-by: Gemma <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Can now run cs-installed sbt. We now only need to be able to parse the first line of a script, so we now support scripts like that sbt, which starts with a normal shebang but then has text in a weird encoding, or maybe non-textual data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters