Skip to content

Commit 073a5fd

Browse files
authored
Merge pull request #12 from serilog/revert-11-master
Revert "Changed the UTF Encoding instance to avoid inserting the BOM character"
2 parents 84171d7 + 8371bd4 commit 073a5fd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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 ?? new UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
77+
_encoding = encoding ?? Encoding.UTF8;
7878
_buffered = buffered;
7979
}
8080

src/Serilog.Sinks.RollingFile/project.json

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

0 commit comments

Comments
 (0)