Changed to apply UTF-8 to UCS2 conversion before assigning the string to nsString, bug 42873, r=cata.

This commit is contained in:
nhotta@netscape.com
2000-06-21 23:26:36 +00:00
parent 38d6c78589
commit 9d71e74ee1
2 changed files with 2 additions and 2 deletions

View File

@@ -1203,7 +1203,7 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
{
// only send non-qualified hosts to the keyword server
nsAutoString keywordSpec; keywordSpec.AssignWithConversion("keyword:");
keywordSpec.AppendWithConversion(host);
keywordSpec.Append(NS_ConvertUTF8toUCS2(host));
return LoadURI(keywordSpec.GetUnicode());
} // end keywordsEnabled
}