stream: Pass 'buffer' encoding to decoded writables
authorisaacs <i@izs.me>
Tue, 27 Aug 2013 21:53:06 +0000 (14:53 -0700)
committerisaacs <i@izs.me>
Tue, 27 Aug 2013 21:53:06 +0000 (14:53 -0700)
commita3da3e73121d68615c5408814284d333f38db692
tree5fcbb652e2d2fa625c27c39f237b4b34360a4a0d
parent5508236c49ee71792041fb6e62cfd2af3de60e6c
stream: Pass 'buffer' encoding to decoded writables

Since the encoding is no longer relevant once it is decoded to a Buffer,
it is confusing and incorrect to pass the encoding as 'utf8' or whatever
in those cases.

Closes #6119
lib/_stream_writable.js
test/simple/test-stream-writable-decoded-encoding.js [new file with mode: 0644]