зеркало из https://github.com/mozilla/gecko-dev.git
Added finish() call to encoder to fix incomplete conversion problem, bug 26182, r=cata, a=ftang.
This commit is contained in:
Родитель
caa54650d3
Коммит
0f691a4feb
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче