fixes bug 129279 "nsIFile unicode/utf8/ascii task"

r=dougt sr=alecf
This commit is contained in:
darin%netscape.com 2006-07-29 05:40:25 +00:00
Родитель fe4474be1a
Коммит 4136881c31
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -301,7 +301,7 @@ function foundHeaderInfo(aSniffer, aData)
const lfContractID = "@mozilla.org/file/local;1";
const lfIID = Components.interfaces.nsILocalFile;
filesFolder = Components .classes[lfContractID].createInstance(lfIID);
filesFolder.initWithUnicodePath(persistArgs.target.unicodePath);
filesFolder.initWithPath(persistArgs.target.path);
var nameWithoutExtension = filesFolder.leafName;
nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf("."));