Permalink
Browse files

define addEncoding for Template

  • Loading branch information...
1 parent 7bc1964 commit f3afe0f8c51f1926494f5919eb9078ccc7021f54 @Floby committed Aug 26, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/template.js
View
@@ -88,6 +88,7 @@ Template.prototype.addStream = function addStream(stream) {
buffer.on('error', function(err) {
self.emit('error', err);
});
+ stream.setEncoding('utf8');
stream.pipe(buffer);
stream.resume();
this._buffers.push(buffer);
@@ -163,5 +164,8 @@ Template.prototype._newData = function _newData(logme) {
Template.prototype._write = function _write(data) {
this.emit('data', data);
};
+Template.prototype.setEncoding = function setEncoding(encoding) {
+
+};
module.exports = Template;

0 comments on commit f3afe0f

Please sign in to comment.