Set UTF8 encoding for git commands

This commit is contained in:
Markus Stoll 2021-02-14 19:13:17 +01:00
parent 23d7166012
commit 613625c5bf
2 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ namespace Sparkles {
StartInfo.WorkingDirectory = Path.GetTempPath ();
StartInfo.CreateNoWindow = true;
StartInfo.RedirectStandardOutput = true;
StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
StartInfo.RedirectStandardError = true;
StartInfo.UseShellExecute = false;

View file

@ -99,7 +99,8 @@ namespace Sparkles.Git {
SetEnvironmentVariable ("PREFIX", "");
SetEnvironmentVariable ("HOME", "");
SetEnvironmentVariable ("LANG", "en_US");
SetEnvironmentVariable ("LANG", "en_US.UTF8");
SetEnvironmentVariable ("LC_ALL", "en_US.UTF8");
}