Skip to content

Commit

Permalink
fix chaotic chinese characters with golang cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
twalluxio committed Nov 7, 2023
1 parent 00a527d commit 127eaeb
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 127eaeb

Please sign in to comment.