From 4949c348faaf1bc61ac764e4af7153703d383823 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Sat, 21 Jan 2023 13:20:14 +0100 Subject: [PATCH] Change CodePagesEncodingProvider to Encoding --- .../Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs b/src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs index bfe991f833..f743a2e24a 100644 --- a/src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs +++ b/src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs @@ -26,8 +26,7 @@ internal static class ExifEncodedStringHelpers // 20932 EUC-JP Japanese (JIS 0208-1990 and 0212-1990) // https://docs.microsoft.com/en-us/dotnet/api/system.text.encoding?view=net-6.0 - private static Encoding JIS0208Encoding => CodePagesEncodingProvider.Instance.GetEncoding(20932) ?? - throw new InvalidOperationException(); + private static Encoding JIS0208Encoding => Encoding.GetEncoding(20932); public static bool IsEncodedString(ExifTagValue tag) => tag switch {