From f2212fa59d546d31a83e870ed546c738b080072a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Wed, 28 Apr 2010 01:16:05 +0200 Subject: [PATCH] Support for FileReadStream.setEncoding --- lib/fs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fs.js b/lib/fs.js index 75f5112bd28..d5d1a2050ac 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -515,6 +515,9 @@ var FileReadStream = fs.FileReadStream = function(path, options) { }; sys.inherits(FileReadStream, events.EventEmitter); +FileReadStream.prototype.setEncoding = function(encoding) { + this.encoding = encoding; +}; FileReadStream.prototype._read = function () { var self = this;