-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is needed because the ShellExecutor uses ProcessBuilder which is known to have encoding issues as it converts Java Strings to C-strings (byte arrays) with no regards to encoding. In order to avoid, the best we can do here is to avoid using characters which can cause encoding issues (eg:whitespaces). Empty-strings also causes the same behavior for which we will raise an IllegalStateException to protect from that as debugging the unusual behavior is time-consuming without any idea what's going wrong so crashing early will make it much easier. PiperOrigin-RevId: 611160643
- Loading branch information
1 parent
1f6688b
commit 8383d78
Showing
3 changed files
with
52 additions
and
1 deletion.
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
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