Skip to content

Commit

Permalink
add set env to en_US.UTF-8. make sure work with en language
Browse files Browse the repository at this point in the history
  • Loading branch information
endlesstravel committed Jan 20, 2025
1 parent 5f8c6cf commit 04599a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/kk/pkg/core/connector/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ func (c *connection) session() (*ssh.Session, error) {
return nil, err
}

if err := sess.Setenv("LANG", "en_US.UTF-8"); err != nil { // try make sure work with english language environments
return nil, err
}

return sess, nil
}

Expand Down

0 comments on commit 04599a7

Please sign in to comment.