• 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: NSString not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString not working


  • Subject: Re: NSString not working
  • From: Clark Cox <email@hidden>
  • Date: Mon, 20 Apr 2009 15:23:30 -0700

On Mon, Apr 20, 2009 at 12:49 PM, Shawn Erickson <email@hidden> wrote:
> On Mon, Apr 20, 2009 at 10:17 AM, Jeremy Pereira <email@hidden> wrote:
>
>> By inspection it is easy to tell tmp is null terminated and that it conforms
>> to the ISO Latin-1 encoding (seeing as it only contains ASCII characters).
>
> You are assuming the file encoding used for the file and/or the way
> gcc is told treat string constants will result in something conforming
> to ISO Latin-1. When compiled it could be 2 byte (or 4 byte) encoded
> for example.

That is simply not true. There is no way that "Blah" will be anything
other than a 5-byte array with the following contents: {'B', 'l', 'a',
'h', '\0'}.

--
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSString not working
      • From: Shawn Erickson <email@hidden>
References: 
 >NSString not working (From: Susan Granger <email@hidden>)
 >Re: NSString not working (From: Alexander von Below <email@hidden>)
 >Re: NSString not working (From: Jeremy Pereira <email@hidden>)
 >Re: NSString not working (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSString not working
  • Next by Date: Re: NSString not working
  • Previous by thread: Re: NSString not working
  • Next by thread: Re: NSString not working
  • Index(es):
    • Date
    • Thread