• 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
XCode 3.0 Editor Replaces Backslashes with Double Backslashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode 3.0 Editor Replaces Backslashes with Double Backslashes


  • Subject: XCode 3.0 Editor Replaces Backslashes with Double Backslashes
  • From: "Steve Evans" <email@hidden>
  • Date: Sat, 16 Feb 2008 20:04:14 +0200

I'm having a weird problem in Xcode 3.0. I'm programming in C++ and I have some existing code I ported over from Windows (via Perforce). When I compile the file I get the following warning coming out of gcc:
 
"warning: multi-character character constant"
 
The problem is always related to lines using escape sequences:
 
e.g. char p = '\n';
 
In the Xcode editor window, the line appears with one backslash and so it appears that the compiler error makes no sense. However, if I view the same file with vi I see two backslashes i.e. char p = '\\n';. Then all becomes clear.
 
After correcting the problem in vi, everything compiles without problem. However, if I then go and make changes using the Xcode editor, all backslashes are replaced by double backslashes again! But as before, I only see the two backslashes if I view the file with something like vi.
 
Has anyone seen this problem?
 _______________________________________________
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: XCode 3.0 Editor Replaces Backslashes with Double Backslashes
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Env variables dropped in 3.0
  • Next by Date: Re: XCode 3.0 Editor Replaces Backslashes with Double Backslashes
  • Previous by thread: Re: Env variables dropped in 3.0
  • Next by thread: Re: XCode 3.0 Editor Replaces Backslashes with Double Backslashes
  • Index(es):
    • Date
    • Thread