encoding casting

This commit is contained in:
Francesco Renzi
2026-03-13 11:08:43 +00:00
committed by GitHub
parent e11d6cfa59
commit 7d0f26a557

View File

@@ -100,7 +100,7 @@ namespace GitHub.Runner.Worker.Dap
_hostContext.GetDirectory(WellKnownDirectory.Temp),
$"dap_repl_{Guid.NewGuid()}{extension}");
var encoding = new UTF8Encoding(false);
Encoding encoding = new UTF8Encoding(false);
#if OS_WINDOWS
contents = contents.Replace("\r\n", "\n").Replace("\n", "\r\n");
encoding = Console.InputEncoding.CodePage != 65001