Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.

git-svn-id: svn://10.0.0.236/trunk@150686 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peter%propagandism.org
2003-12-23 16:48:40 +00:00
parent 06c4658970
commit 7f400f66de
22 changed files with 45 additions and 51 deletions

View File

@@ -2531,7 +2531,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, const PRUnichar *aUR
// Get the host
nsCAutoString host;
aURI->GetHost(host);
formatStrs[0].Assign(NS_ConvertUTF8toUCS2(host));
CopyUTF8toUTF16(host, formatStrs[0]);
formatStrCount = 1;
error.Assign(NS_LITERAL_STRING("dnsNotFound"));
}
@@ -2558,7 +2558,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, const PRUnichar *aUR
// Get the host
nsCAutoString host;
aURI->GetHost(host);
formatStrs[0].Assign(NS_ConvertUTF8toUCS2(host));
CopyUTF8toUTF16(host, formatStrs[0]);
formatStrCount = 1;
error.Assign(NS_LITERAL_STRING("netTimeout"));
}