[Pkg-javascript-commits] [grunt] 01/01: remove encoding conversion in write too

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Nov 13 17:46:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository grunt.

commit 64c9f8eae53f8e60f81bd9e4efdd54dead94520e
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Nov 13 23:14:54 2016 +0530

    remove encoding conversion in write too
---
 debian/patches/remove-encoding-conversion.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/patches/remove-encoding-conversion.patch b/debian/patches/remove-encoding-conversion.patch
index 27403de..bfb1057 100644
--- a/debian/patches/remove-encoding-conversion.patch
+++ b/debian/patches/remove-encoding-conversion.patch
@@ -16,3 +16,15 @@ Index: grunt/lib/grunt/file.js
      grunt.verbose.ok();
      return contents;
    } catch (e) {
+@@ -276,9 +276,9 @@ file.write = function(filepath, contents
+   try {
+     // If contents is already a Buffer, don't try to encode it. If no encoding
+     // was specified, use the default.
+-    if (!Buffer.isBuffer(contents)) {
++/*    if (!Buffer.isBuffer(contents)) {
+       contents = iconv.encode(contents, options.encoding || file.defaultEncoding);
+-    }
++    }*/
+     // Actually write file.
+     if (!nowrite) {
+       fs.writeFileSync(filepath, contents, 'mode' in options ? {mode: options.mode} : {});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/grunt.git



More information about the Pkg-javascript-commits mailing list