You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.243
Former-commit-id: ff34202749e8df2aa83f2578b16260b444f50987
This commit is contained in:
parent
804b15604f
commit
3cc9601fd9
@ -157,7 +157,11 @@ internal class Latin1Encoding : Encoding
|
||||
buffer = EncoderFallback.CreateFallbackBuffer ();
|
||||
if (Char.IsSurrogate (ch) && count > 1 &&
|
||||
Char.IsSurrogate (chars [charIndex]))
|
||||
buffer.Fallback (ch, chars [charIndex], charIndex++ - 1);
|
||||
{
|
||||
buffer.Fallback (ch, chars [charIndex], charIndex - 1);
|
||||
charIndex++;
|
||||
count--;
|
||||
}
|
||||
else
|
||||
buffer.Fallback (ch, charIndex - 1);
|
||||
if (fallback_chars == null || fallback_chars.Length < buffer.Remaining)
|
||||
|
Reference in New Issue
Block a user