зеркало из https://github.com/mozilla/gecko-dev.git
Bug 998065 - Added 0o prefix to octal numbers; r=froydnj
This commit is contained in:
Родитель
482a149efd
Коммит
4ed026d66a
|
@ -193,13 +193,13 @@ function createAndLoadTemporaryFile(aFile, aFileName, aFileContent)
|
|||
{
|
||||
// Create a temporary file.
|
||||
aFile = FileUtils.getFile("TmpD", [aFileName]);
|
||||
aFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
|
||||
aFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o666);
|
||||
|
||||
// Write the temporary file.
|
||||
let fout = Cc["@mozilla.org/network/file-output-stream;1"].
|
||||
createInstance(Ci.nsIFileOutputStream);
|
||||
fout.init(aFile.QueryInterface(Ci.nsILocalFile), 0x02 | 0x08 | 0x20,
|
||||
0644, fout.DEFER_OPEN);
|
||||
0o644, fout.DEFER_OPEN);
|
||||
|
||||
gScratchpad.setFilename(aFile.path);
|
||||
gScratchpad.importFromFile(aFile.QueryInterface(Ci.nsILocalFile), true,
|
||||
|
|
|
@ -45,21 +45,21 @@ function runTests()
|
|||
|
||||
// Create a temporary file.
|
||||
gFileA = FileUtils.getFile("TmpD", ["fileAForBug684546.tmp"]);
|
||||
gFileA.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
|
||||
gFileA.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o666);
|
||||
|
||||
gFileB = FileUtils.getFile("TmpD", ["fileBForBug684546.tmp"]);
|
||||
gFileB.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
|
||||
gFileB.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o666);
|
||||
|
||||
// Write the temporary file.
|
||||
let foutA = Cc["@mozilla.org/network/file-output-stream;1"].
|
||||
createInstance(Ci.nsIFileOutputStream);
|
||||
foutA.init(gFileA.QueryInterface(Ci.nsILocalFile), 0x02 | 0x08 | 0x20,
|
||||
0644, foutA.DEFER_OPEN);
|
||||
0o644, foutA.DEFER_OPEN);
|
||||
|
||||
let foutB = Cc["@mozilla.org/network/file-output-stream;1"].
|
||||
createInstance(Ci.nsIFileOutputStream);
|
||||
foutB.init(gFileB.QueryInterface(Ci.nsILocalFile), 0x02 | 0x08 | 0x20,
|
||||
0644, foutB.DEFER_OPEN);
|
||||
0o644, foutB.DEFER_OPEN);
|
||||
|
||||
let converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].
|
||||
createInstance(Ci.nsIScriptableUnicodeConverter);
|
||||
|
|
|
@ -98,13 +98,13 @@ function createAndLoadTemporaryFile()
|
|||
{
|
||||
// Create a temporary file.
|
||||
gFile = FileUtils.getFile("TmpD", [gFileName]);
|
||||
gFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0666);
|
||||
gFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o666);
|
||||
|
||||
// Write the temporary file.
|
||||
let fout = Cc["@mozilla.org/network/file-output-stream;1"].
|
||||
createInstance(Ci.nsIFileOutputStream);
|
||||
fout.init(gFile.QueryInterface(Ci.nsILocalFile), 0x02 | 0x08 | 0x20,
|
||||
0644, fout.DEFER_OPEN);
|
||||
0o644, fout.DEFER_OPEN);
|
||||
|
||||
let converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].
|
||||
createInstance(Ci.nsIScriptableUnicodeConverter);
|
||||
|
|
Загрузка…
Ссылка в новой задаче