Skip to content

Commit

Permalink
Fix chaotic chinese characters with golang cli commands
Browse files Browse the repository at this point in the history
Cherry-pick of existing commit.
orig-pr: #18386
orig-commit: 7d15de7
orig-commit-author: twalluxio <[email protected]>

			pr-link: #18394
			change-id: cid-a15fb106b4a6cd77087cdbba82e426f1ba1e4b4c
  • Loading branch information
alluxio-bot authored Nov 8, 2023
1 parent 274bd2c commit 4bb72ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/alluxio.org/cli/env/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (c *BaseJavaCommand) RunJavaClassCmd(args []string) *exec.Cmd {
cmdArgs = append(cmdArgs, args...)

ret := exec.Command(Env.EnvVar.GetString(ConfJava.EnvVar), cmdArgs...)
ret.Env = os.Environ()
for _, k := range Env.EnvVar.AllKeys() {
ret.Env = append(ret.Env, fmt.Sprintf("%s=%v", k, Env.EnvVar.Get(k)))
}
Expand Down

0 comments on commit 4bb72ba

Please sign in to comment.