Added finish() call to encoder to fix incomplete conversion problem, bug 26182, r=cata, a=ftang.

This commit is contained in:
nhotta%netscape.com 2000-06-06 23:31:36 +00:00
Родитель caa54650d3
Коммит 0f691a4feb
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -120,6 +120,9 @@ nsresult nsMsgI18NConvertFromUnicode(const nsCString& aCharset,
currentSrcPtr += srcLength;
consumedLen = currentSrcPtr - originalSrcPtr; // src length used so far
}
res = encoder->Finish(localbuf, &dstLength);
if (NS_SUCCEEDED(res))
outString.Append(localbuf, dstLength);
}
}
}