diff --git a/src/Commands/Command.cs b/src/Commands/Command.cs index 2fa42b1a..ce0afcab 100644 --- a/src/Commands/Command.cs +++ b/src/Commands/Command.cs @@ -41,6 +41,12 @@ namespace SourceGit.Commands start.StandardOutputEncoding = Encoding.UTF8; start.StandardErrorEncoding = Encoding.UTF8; + // Force using en_US.UTF-8 locale to avoid GCM crash + if (OperatingSystem.IsLinux()) + { + start.Environment.Add("LANG", "en_US.UTF-8"); + } + if (!string.IsNullOrEmpty(WorkingDirectory)) start.WorkingDirectory = WorkingDirectory; var errs = new List();