• 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: Shawn Erickson <email@hidden>
  • Date: Mon, 20 Apr 2009 12:49:40 -0700

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.

Likely something like that is taking place in this case since the OP
stated that it works in other projects just not in this one project.

So what is the file encoding as stored on disk and what do the gcc
command line look like when you compile the file? What version of gcc
and Xcode?

-Shawn
 _______________________________________________
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: Clark Cox <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>)

  • Prev by Date: Re: Building Multiple Libraries
  • 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