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 a1.9=beltzner]
git-svn-id: svn://10.0.0.236/trunk@246404 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a6bcce705c
commit
5edc7ca032
@ -1556,11 +1556,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;
|
||||
@ -2222,7 +2222,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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user