diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-10-14 17:12:47 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-15 21:56:05 +0400 |
commit | b10c4b6e4cc8e15e80313650badea5734037d5cf (patch) | |
tree | e60b606f0e21f7bb5a4aba856d62cc186a5d4d14 /LibGit2Sharp/ContentChanges.cs | |
parent | 75eaceb3b4aa3fa30cf7b2d6876679d1986af0bb (diff) |
Make string marshaling either lax or strict
Diffstat (limited to 'LibGit2Sharp/ContentChanges.cs')
-rw-r--r-- | LibGit2Sharp/ContentChanges.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/ContentChanges.cs b/LibGit2Sharp/ContentChanges.cs index 68134696..79214f67 100644 --- a/LibGit2Sharp/ContentChanges.cs +++ b/LibGit2Sharp/ContentChanges.cs @@ -82,7 +82,7 @@ namespace LibGit2Sharp private int HunkCallback(GitDiffDelta delta, GitDiffRange range, IntPtr header, UIntPtr headerlen, IntPtr payload) { - string decodedContent = Utf8Marshaler.FromNative(header, (int)headerlen); + string decodedContent = LaxUtf8Marshaler.FromNative(header, (int)headerlen); AppendToPatch(decodedContent); return 0; @@ -90,7 +90,7 @@ namespace LibGit2Sharp private int LineCallback(GitDiffDelta delta, GitDiffRange range, GitDiffLineOrigin lineorigin, IntPtr content, UIntPtr contentlen, IntPtr payload) { - string decodedContent = Utf8Marshaler.FromNative(content, (int)contentlen); + string decodedContent = LaxUtf8Marshaler.FromNative(content, (int)contentlen); string prefix; |