Re: About Universal Binaries...
Re: About Universal Binaries...
- Subject: Re: About Universal Binaries...
- From: Ali Ozer <email@hidden>
- Date: Tue, 31 Jan 2006 21:55:40 -0800
3. Watch how you're using Unicode buffers. On PPC builds, -
[NSString initWithData:encoding:] with NSUnicodeStringEncoding
expects the data to be in big-endian format if there is no BOM; on
Intel builds, it'll be expected to be in little-endian format if
there is no BOM.
Actually, "external" UTF-16 character buffers (which is what this
method expects) are always big-endian in the absence of a BOM.
However, "internal" buffers (unichar *) are always native endianness.
Ali
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden