Bug 409796 - "No pictures shown in saved file (file name and folder name, containing that file, is in cyrillic)" [p=lolkaantimat@gmail.com (Evgeniy Ivanov [powerfox]) r+sr=biesi a=dveditz]

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@247088 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2008-03-05 10:39:51 +00:00
parent a2fa072813
commit a0b7411d47

View File

@@ -1554,11 +1554,11 @@ nsresult nsWebBrowserPersist::SaveDocumentInternal(
break;
}
nsCAutoString dirName;
dataDirParent->GetNativeLeafName(dirName);
nsAutoString dirName;
dataDirParent->GetLeafName(dirName);
nsCAutoString newRelativePathToData;
newRelativePathToData = dirName
newRelativePathToData = NS_ConvertUTF16toUTF8(dirName)
+ NS_LITERAL_CSTRING("/")
+ relativePathToData;
relativePathToData = newRelativePathToData;
@@ -2223,7 +2223,7 @@ nsWebBrowserPersist::CalculateAndAppendFileExt(nsIURI *aURI, nsIChannel *aChanne
if (localFile)
{
localFile->SetNativeLeafName(newFileName);
localFile->SetLeafName(NS_ConvertUTF8toUTF16(newFileName));
// Resync the URI with the file after the extension has been appended
nsCOMPtr<nsIFileURL> fileURL = do_QueryInterface(aURI, &rv);