From 2c4c901bcc843df3dfd328b35bf13f0e5d90e51f Mon Sep 17 00:00:00 2001 From: "bugzilla%arlen.demon.co.uk" Date: Thu, 2 Dec 2004 00:22:51 +0000 Subject: [PATCH] Bug 261269 toolkit should treat URIs as UTF-8 Relanding nsDownloadManager.cpp of patch following landing of aviary branch --- toolkit/components/downloads/src/nsDownloadManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/downloads/src/nsDownloadManager.cpp b/toolkit/components/downloads/src/nsDownloadManager.cpp index f50566c1f6ea..f7ff4c82b7f1 100644 --- a/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -1647,8 +1647,8 @@ nsDownloadsDataSource::GetTarget(nsIRDFResource* aSource, nsIRDFResource* aPrope fph->GetURLSpecFromFile(lf, fileURL); nsAutoString iconURL(NS_LITERAL_STRING("moz-icon://")); - nsAutoString pathTemp; pathTemp.AssignWithConversion(fileURL); - iconURL += pathTemp + NS_LITERAL_STRING("?size=32"); + AppendUTF8toUTF16(fileURL, iconURL); + iconURL.AppendLiteral("?size=32"); nsCOMPtr result; gRDFService->GetUnicodeResource(iconURL, getter_AddRefs(result));