[Pkg-mozext-commits] [greasemonkey] 09/25: Only write the UTF-8 BOM to the script itself, not all files.
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:14:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 68dd6155bad7c1e370e3bc935ec9bfccd6de4444
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Fri Aug 15 15:20:11 2014 -0400
Only write the UTF-8 BOM to the script itself, not all files.
Fixes #1990
---
modules/remoteScript.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/remoteScript.js b/modules/remoteScript.js
index d0b0a91..31b4a0f 100644
--- a/modules/remoteScript.js
+++ b/modules/remoteScript.js
@@ -95,7 +95,9 @@ function DownloadListener(
this._fileOutputStream = Cc["@mozilla.org/network/file-output-stream;1"]
.createInstance(Ci.nsIFileOutputStream);
this._fileOutputStream.init(aFile, -1, -1, null);
- this._fileOutputStream.write('\u00EF\u00BB\u00BF', 3); // UTF-8 BOM
+ if (aTryToParse) {
+ this._fileOutputStream.write('\u00EF\u00BB\u00BF', 3); // UTF-8 BOM
+ }
this._binOutputStream = Cc['@mozilla.org/binaryoutputstream;1']
.createInstance(Ci.nsIBinaryOutputStream);
this._binOutputStream.setOutputStream(this._fileOutputStream);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list