fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs

r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
This commit is contained in:
alecf@flett.org
2003-06-17 16:40:34 +00:00
parent 56753be82c
commit aa24a7bb8e
82 changed files with 400 additions and 425 deletions

View File

@@ -164,13 +164,13 @@ nsFrameLoader::LoadFrame()
nsCOMPtr<nsIURI> base_uri;
doc->GetBaseURL(getter_AddRefs(base_uri));
nsAutoString doc_charset;
nsCAutoString doc_charset;
doc->GetDocumentCharacterSet(doc_charset);
nsCOMPtr<nsIURI> uri;
rv = NS_NewURI(getter_AddRefs(uri), src,
doc_charset.IsEmpty() ? nsnull :
NS_ConvertUCS2toUTF8(doc_charset).get(), base_uri);
doc_charset.get(), base_uri);
NS_ENSURE_SUCCESS(rv, rv);
// Check for security