Fixed a common buffer overflows to most I18N.Other.* encoders, by which mapping of...
[mono.git] / mcs / class / I18N / Common / MonoSafeEncoding.cs
index 9b970a5d232cab6e5dc1ad267d3e053607463a6a..c7caf0f39dd6c3d50e07fdaa0d9a52874f544b7d 100644 (file)
@@ -62,7 +62,6 @@ namespace I18N.Common
                        if (buffer == null)
                                buffer = EncoderFallback.CreateFallbackBuffer();
 
-                       // THIS IS WERE THE BUG IS!! (pruiz)
                        if (charCount > 1 && (Char.IsSurrogate(chars[charIndex]) && Char.IsSurrogate(chars[charIndex + 1])))
                        {
                                buffer.Fallback (chars[charIndex], chars[charIndex + 1], charIndex);