On Wed, Oct 17, 2012 at 4:01 PM, Vitaly Puzrin <[email protected]> wrote:

> This question is not about buffers. It's about strings.
>
> If official API says, that handler can operate with strings, i expect,
> those strings are always valid.
>

Then your expectations are too high.

Internally it deals with bytes, and converts them directly to strings
without any care for making sure the strings are valid.

If you need valid strings you need to receive and process the entire buffer
as one.

Matt.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to