joyent/node — pull request #3151 by shama (2012-04-21 04:37:27+00:00)
Title: fs: fix scope of encoding in readSync

With the new buffer based `readSync()`, the call to `buffer.toString()` throws an unknown var as `encoding` is only set with legacy.