Fixed the case less sort key creation problem.

This commit is contained in:
nhotta%netscape.com 1999-04-02 05:41:10 +00:00
parent 12179cbf41
commit 0fc50f9e21

View File

@ -129,7 +129,7 @@ nsresult nsCollationWin::CreateRawSortKey(const nsCollationStrength strength,
}
else {
char *Cstr = nsnull;
res = mCollation->UnicodeToChar(stringIn, &Cstr, mCharset);
res = mCollation->UnicodeToChar(stringNormalized, &Cstr, mCharset);
if (NS_SUCCEEDED(res) && Cstr != nsnull) {
byteLen = LCMapStringA(mLCID, LCMAP_SORTKEY, Cstr, PL_strlen(Cstr), (char *) key, (int) *outLen);
PR_Free(Cstr);