Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.X' into adcs
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Nov 30, 2023
2 parents a341b73 + 0500602 commit 76fb763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Writers/CompStatusWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected override void CreateFile()
var exists = File.Exists(filename);
_streamWriter = new StreamWriter(
new FileStream(filename, exists ? FileMode.Truncate : FileMode.Create, FileAccess.ReadWrite),
Encoding.UTF8);
new UTF8Encoding(false));
_streamWriter.WriteLine("ComputerName,Task,Status");
}

Expand Down
2 changes: 1 addition & 1 deletion src/Writers/JsonDataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected override void CreateFile()

_fileName = filename;

_jsonWriter = new JsonTextWriter(new StreamWriter(filename, false, Encoding.UTF8));
_jsonWriter = new JsonTextWriter(new StreamWriter(filename, false, new UTF8Encoding(false)));
_jsonWriter.Formatting = PrettyPrint;
_jsonWriter.WriteStartObject();
_jsonWriter.WritePropertyName("data");
Expand Down

0 comments on commit 76fb763

Please sign in to comment.