Skip to content

Commit 0034283

Browse files
committed
fixup! Make string marshaling either lax or strict
1 parent ae24db0 commit 0034283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibGit2Sharp/Core/Utf8Marshaler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal class StrictUtf8Marshaler : EncodingMarshaler
5353

5454
static StrictUtf8Marshaler()
5555
{
56-
encoding = new UTF8Encoding(true, true);
56+
encoding = new UTF8Encoding(false, true);
5757
staticInstance = new StrictUtf8Marshaler();
5858
}
5959

@@ -90,7 +90,7 @@ internal class LaxUtf8Marshaler : EncodingMarshaler
9090
{
9191
private static readonly LaxUtf8Marshaler staticInstance = new LaxUtf8Marshaler();
9292

93-
private static readonly Encoding encoding = new UTF8Encoding(true, false);
93+
private static readonly Encoding encoding = new UTF8Encoding(false, false);
9494

9595
public LaxUtf8Marshaler() : base(encoding)
9696
{ }

0 commit comments

Comments
 (0)