Skip to content

Commit 7d9f5d2

Browse files
committed
Merge commit '5e0aa5bb844e439550ea7cf1e5460fd50f1b37a1' into dev; see: #12
2 parents 9ad2879 + 5e0aa5b commit 7d9f5d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Serilog.Sinks.RollingFile/Sinks/RollingFile/RollingFileSink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public RollingFileSink(string pathFormat,
7474
_textFormatter = textFormatter;
7575
_fileSizeLimitBytes = fileSizeLimitBytes;
7676
_retainedFileCountLimit = retainedFileCountLimit;
77-
_encoding = encoding ?? Encoding.UTF8;
77+
_encoding = encoding ?? new UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
7878
_buffered = buffered;
7979
}
8080

src/Serilog.Sinks.RollingFile/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"dependencies": {
2424
"System.IO": "4.1.0",
2525
"System.IO.FileSystem.Primitives": "4.0.1",
26-
"System.Runtime.InteropServices": "4.1.0"
26+
"System.Runtime.InteropServices": "4.1.0",
27+
"System.Text.Encoding.Extensions": "4.0.11"
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)