Do you really think, that eхpectiotion to get correct strings instead of 
crap from official API is too high :) ?

Returning strings is officially documented feature. It sould work 
correctly, or should be removed, to not confuse people.
As i said, 99% examples in internet about joining node chunks uses strings. 
That's a reality.

I know how to work with buffers. My point is, that API should be fixed.

четверг, 18 октября 2012 г., 0:23:38 UTC+4 пользователь Matt Sergeant 
написал:
>
> On Wed, Oct 17, 2012 at 4:01 PM, Vitaly Puzrin 
> <[email protected]<javascript:>
> > 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