mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-10-25 05:37:37 +03:00
Set LC_MESSAGES too
I'm not sure this is necessary, but it doesn't hurt.
This commit is contained in:
@@ -246,6 +246,7 @@ func (self *RebaseCommands) PrepareInteractiveRebaseCommand(opts PrepareInteract
|
|||||||
"DEBUG="+debug,
|
"DEBUG="+debug,
|
||||||
"LANG=C", // Force using English language
|
"LANG=C", // Force using English language
|
||||||
"LC_ALL=C", // Force using English language
|
"LC_ALL=C", // Force using English language
|
||||||
|
"LC_MESSAGES=C", // Force using English language
|
||||||
"GIT_SEQUENCE_EDITOR="+gitSequenceEditor,
|
"GIT_SEQUENCE_EDITOR="+gitSequenceEditor,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -279,6 +280,7 @@ func (self *RebaseCommands) GitRebaseEditTodo(todosFileContent []byte) error {
|
|||||||
"DEBUG="+debug,
|
"DEBUG="+debug,
|
||||||
"LANG=C", // Force using English language
|
"LANG=C", // Force using English language
|
||||||
"LC_ALL=C", // Force using English language
|
"LC_ALL=C", // Force using English language
|
||||||
|
"LC_MESSAGES=C", // Force using English language
|
||||||
"GIT_EDITOR="+ex,
|
"GIT_EDITOR="+ex,
|
||||||
"GIT_SEQUENCE_EDITOR="+ex,
|
"GIT_SEQUENCE_EDITOR="+ex,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ func (self *cmdObjRunner) runAndDetectCredentialRequest(
|
|||||||
promptUserForCredential func(CredentialType) <-chan string,
|
promptUserForCredential func(CredentialType) <-chan string,
|
||||||
) error {
|
) error {
|
||||||
// setting the output to english so we can parse it for a username/password request
|
// setting the output to english so we can parse it for a username/password request
|
||||||
cmdObj.AddEnvVars("LANG=C", "LC_ALL=C")
|
cmdObj.AddEnvVars("LANG=C", "LC_ALL=C", "LC_MESSAGES=C")
|
||||||
|
|
||||||
return self.runAndStreamAux(cmdObj, func(handler *cmdHandler, cmdWriter io.Writer) {
|
return self.runAndStreamAux(cmdObj, func(handler *cmdHandler, cmdWriter io.Writer) {
|
||||||
tr := io.TeeReader(handler.stdoutPipe, cmdWriter)
|
tr := io.TeeReader(handler.stdoutPipe, cmdWriter)
|
||||||
|
|||||||
Reference in New Issue
Block a user