• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: About Universal Binaries...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Still struggling with Universal Binaries (From: Aram Kudurshian <email@hidden>)
 >Re: Still struggling with Universal Binaries (From: Shawn Erickson <email@hidden>)
 >About Universal Binaries... (From: "Juan P. Pertierra" <email@hidden>)
 >Re: About Universal Binaries... (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: About Universal Binaries...
  • Next by Date: Re: whackedtv changes
  • Previous by thread: Re: About Universal Binaries...
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 151
  • Index(es):
    • Date
    • Thread