Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions tests/FSharp.Test.Utilities/TestFramework.fs
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,7 @@ module Command =
let exec dir envVars (redirect:RedirectInfo) path args =

#if !NETCOREAPP
let ensureConsole () =
// Set UTF-8 encoding for console input/output to ensure FSI receives UTF-8 data.
// This is needed because on net472 ProcessStartInfo.StandardInputEncoding is unavailable,
// so the spawned process inherits the console's encoding settings.
Console.InputEncoding <- Text.UTF8Encoding(false)
Console.OutputEncoding <- Text.UTF8Encoding(false)
let ensureConsole () = ()
#else
let ensureConsole () = ()
#endif
Expand Down
Loading