From 0a7be79e3438183858a56e77b2906e26cdf67e4c Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Tue, 28 Jul 2026 14:11:56 +0100 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/SharpCompress/Common/EncodingProviderRegistration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpCompress/Common/EncodingProviderRegistration.cs b/src/SharpCompress/Common/EncodingProviderRegistration.cs index 351b0231..bcb88256 100644 --- a/src/SharpCompress/Common/EncodingProviderRegistration.cs +++ b/src/SharpCompress/Common/EncodingProviderRegistration.cs @@ -27,7 +27,7 @@ internal static class EncodingProviderRegistration // Registering an encoding provider is the exception it does not account for: the registration has to be // in place before the first Encoding.GetEncoding call, and that call may be made by the consumer before // it touches any SharpCompress type. Every lazier trigger reintroduces the ordering bug. Callers who need - // registration to be explicit (e.g. to keep it trimmable) can call RegisterCodePagesProvider themselves. + // registration to be explicit can call Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) themselves. #pragma warning disable CA2255 [ModuleInitializer] #pragma warning restore CA2255