Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit c7cf943

Browse files
Merge pull request #220 from shiena/force-setting-encoding-option
Fix garbled characters in history view with non-ascii characters (fixes #124)(fixes #35)
2 parents 21cdc4e + 507750d commit c7cf943

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/GitHub.Api/Git/Tasks/GitCommitTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GitCommitTask(string message, string body,
1515
Guard.ArgumentNotNullOrWhiteSpace(message, "message");
1616

1717
Name = TaskName;
18-
arguments = "commit ";
18+
arguments = "-c i18n.commitencoding=utf8 commit ";
1919
arguments += String.Format(" -m \"{0}\"", message);
2020
if (!String.IsNullOrEmpty(body))
2121
arguments += String.Format(" -m \"{0}\"", body);

src/GitHub.Api/Git/Tasks/GitLogTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GitLogTask(IGitObjectFactory gitObjectFactory,
1515

1616
public override string ProcessArguments
1717
{
18-
get { return @"log --pretty=format:""%H%n%P%n%aN%n%aE%n%aI%n%cN%n%cE%n%cI%n%B---GHUBODYEND---"" --name-status"; }
18+
get { return @"-c i18n.logoutputencoding=utf8 -c core.quotepath=false log --pretty=format:""%H%n%P%n%aN%n%aE%n%aI%n%cN%n%cE%n%cI%n%B---GHUBODYEND---"" --name-status"; }
1919
}
2020
}
2121
}

src/GitHub.Api/Git/Tasks/GitStatusTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GitStatusTask(IGitObjectFactory gitObjectFactory,
1515

1616
public override string ProcessArguments
1717
{
18-
get { return "status -b -u --ignored --porcelain"; }
18+
get { return "-c i18n.logoutputencoding=utf8 -c core.quotepath=false status -b -u --ignored --porcelain"; }
1919
}
2020
public override TaskAffinity Affinity { get { return TaskAffinity.Exclusive; } }
2121
}

src/tests/IntegrationTests/Process/ProcessManagerIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public async Task LogEntriesTest()
8181
});
8282
}
8383

84-
[Test, Category("DoNotRunOnAppVeyor")]
84+
[Test]
8585
public async Task RussianLogEntriesTest()
8686
{
8787
await Initialize(TestRepoMasterCleanUnsynchronizedRussianLanguage);

0 commit comments

Comments
 (0)