Re: NSString not working
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