mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(Encodings): added WithFatalFallback static method.
This commit is contained in:
parent
5696fad710
commit
32f3dd134f
@ -34,6 +34,13 @@ namespace GameRes
|
||||
public static class Encodings
|
||||
{
|
||||
public static readonly Encoding cp932 = Encoding.GetEncoding (932);
|
||||
|
||||
public static Encoding WithFatalFallback (Encoding enc)
|
||||
{
|
||||
enc = enc.Clone() as Encoding;
|
||||
enc.EncoderFallback = EncoderFallback.ExceptionFallback;
|
||||
return enc;
|
||||
}
|
||||
}
|
||||
|
||||
public static class StreamExtension
|
||||
|
Loading…
Reference in New Issue
Block a user