(Encodings.WithFatalFallback): set fatal fallback for decoder, too.

This commit is contained in:
morkt 2016-11-24 13:26:44 +04:00
parent 0120c3405a
commit e03fedcb5a

View File

@ -40,6 +40,7 @@ namespace GameRes
{ {
var encoding = enc.Clone() as Encoding; var encoding = enc.Clone() as Encoding;
encoding.EncoderFallback = EncoderFallback.ExceptionFallback; encoding.EncoderFallback = EncoderFallback.ExceptionFallback;
encoding.DecoderFallback = DecoderFallback.ExceptionFallback;
return encoding; return encoding;
} }
} }