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

git-svn-id: svn://10.0.0.236/trunk@72838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2000-06-21 23:26:36 +00:00
parent 274afa85cf
commit ba83736aa1
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
}