зеркало из https://github.com/mozilla/pjs.git
Fixed the case less sort key creation problem.
This commit is contained in:
Родитель
9cfa10a728
Коммит
5ad4d9f122
|
@ -129,7 +129,7 @@ nsresult nsCollationWin::CreateRawSortKey(const nsCollationStrength strength,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char *Cstr = nsnull;
|
char *Cstr = nsnull;
|
||||||
res = mCollation->UnicodeToChar(stringIn, &Cstr, mCharset);
|
res = mCollation->UnicodeToChar(stringNormalized, &Cstr, mCharset);
|
||||||
if (NS_SUCCEEDED(res) && Cstr != nsnull) {
|
if (NS_SUCCEEDED(res) && Cstr != nsnull) {
|
||||||
byteLen = LCMapStringA(mLCID, LCMAP_SORTKEY, Cstr, PL_strlen(Cstr), (char *) key, (int) *outLen);
|
byteLen = LCMapStringA(mLCID, LCMAP_SORTKEY, Cstr, PL_strlen(Cstr), (char *) key, (int) *outLen);
|
||||||
PR_Free(Cstr);
|
PR_Free(Cstr);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче