зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf
This commit is contained in:
Родитель
fe4474be1a
Коммит
4136881c31
|
@ -301,7 +301,7 @@ function foundHeaderInfo(aSniffer, aData)
|
||||||
const lfContractID = "@mozilla.org/file/local;1";
|
const lfContractID = "@mozilla.org/file/local;1";
|
||||||
const lfIID = Components.interfaces.nsILocalFile;
|
const lfIID = Components.interfaces.nsILocalFile;
|
||||||
filesFolder = Components .classes[lfContractID].createInstance(lfIID);
|
filesFolder = Components .classes[lfContractID].createInstance(lfIID);
|
||||||
filesFolder.initWithUnicodePath(persistArgs.target.unicodePath);
|
filesFolder.initWithPath(persistArgs.target.path);
|
||||||
|
|
||||||
var nameWithoutExtension = filesFolder.leafName;
|
var nameWithoutExtension = filesFolder.leafName;
|
||||||
nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf("."));
|
nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf("."));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче