Re: cString deprecated!
Re: cString deprecated!
- Subject: Re: cString deprecated!
- From: Ali Ozer <email@hidden>
- Date: Wed, 4 Sep 2002 09:09:51 -0700
If UTF-8 is always the best choice, why not just make it the
defaultCStringEncoding? Why shift the decision to each application
developer instead of the user or API maintainer?
UTF-8 is not always the best choice; the choice depends on the usage.
For instance, a common usage pattern for cString is to interpret
"legacy" documents and untagged 8-bit text; in those cases the
interpretation might indeed depend on the user's default language and
encoding, or a fixed encoding (such as MacRoman or ISOLatin1) is more
appropriate, regardless of user's language.
So, I think such a change would be too incompatible; that is why it's
better to leave this method as is and move away from it, while
encouraging and introducing other methods which are more explicit about
what the developer is trying to accomplish.
Ali
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.