On Feb 7, 2009, at 7:13 PM, Michael Ash wrote:

What's wrong is that they won't allow you to specify the text encoding to
use. The same thing is true for the *deprecated* method
"+stringWithCString:" by the way.

That is incorrect.


I don't think that what I said is incorrect, at least not wrt. what I wanted to express: Not being able to specify the encoding is probably the most significant problem shared between these two API:s. Since it's been established that the OP is working on ASCII data it's not a problem in his particular case (Yay!), but it is a problem in general.


<snip>
There's a substantial difference between simply passing data through unconverted and attempting to convert it but getting the conversion wrong.


I don't think that there is any difference, since you're *interpreting* the data as a sequence of characters in both cases. fgets and friends are documented to be operations on characters and strings, not bit patterns and opaque data buffers. But perhaps best to agree to disagree at this point, I don't think we're really getting anywhere, and this thread is really starting to get old...


j o a r


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to