joyent/node — pull request #5485 by bnoordhuis (2013-05-15 18:54:00+00:00)
Title: buffer, crypto: fix default encoding regression

The default encoding is 'buffer'. When the input is a string, treat it
as 'binary'. Fixes the following assertion:

node: ../src/string_bytes.cc:309: static size_t
node::StringBytes::StorageSize(v8::Handle, node::encoding):
Assertion `0 && "buffer encoding specified but string provided"'
failed.

Fixes #5482.

Suggested reviewers: @isaacs @piscisaureus. Resubmitted because of GH weirdness.