Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit caf8e50

Browse files
committed
Fix the encoding bug
1 parent 776d50c commit caf8e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.CodeFormatting/FormattingEngineImplementation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private async Task SaveChanges(Solution solution, Solution originalSolution, Can
101101
encoding = originalSourceText.Encoding;
102102
}
103103

104-
using (var writer = new StreamWriter(file, sourceText.Encoding))
104+
using (var writer = new StreamWriter(file, encoding))
105105
{
106106
sourceText.Write(writer, cancellationToken);
107107
}

0 commit comments

Comments
 (0)