Review machine-dependent default text encoding

Proprietary

Find resolved BCL Encoding.Default reads and Encoding.GetEncoding(int) calls with literal zero, including aliases, static imports and named zero. Preserve executable code, provider registration and fallback policy; do not choose UTF-8 or a legacy code page. Leave lookalikes, unresolved calls, nameof-only references, other encoding requests and conditional snapshots unchanged.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindMachineDependentEncoding
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.FindMachineDependentEncoding

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.