• 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: gcc and extended character source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc and extended character source code


  • Subject: Re: gcc and extended character source code
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 11 Feb 2008 10:03:27 -0500
  • Organization: Rogue Research

On 2/11/08 5:01 AM, Peter Mulholland said:

>I have checked that the right file encoding is set in Xcode, which is
>Western (ISO Latin 1). I've even tried converting the files to UTF-8
>but gcc still wont compile them. For example:

Last I checked, although Xcode keeps track of a file's encoding as part
of a project, it does not pass that encoding to gcc.  You might want to
add "-finput-charset" to your 'other c flags'.  But '-finput-charset'
defaults to UTF8, so if you converted your files already, that may not
help.  BTW, I think you'll have much better luck with UTF8 than any
other encoding.

>enum Spiele
>{
>        BILDER_BASTELN,
>        CRAZY_QUADER,
>        DREIECK_RECHNEN,
>        GEDÄCHTNIS,
>...
>};
>
>... produces the errors:
>
>error: expected '}' before 'OTHER' token
>error expected unqualified-id beefore 'OTHER' token
>
>... on the line where "GEDÄCHTNIS" is declared. If I comment it out,
>or edit it to "GEDACHTNIS" it works.

Is this C or C++?

Sadly, non-ASCII chars are not very well supported.  But things have
gotten better in recent years.  In 10.5, you can finally have non-ASCII
characters in @"" string constants for example!

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

 _______________________________________________
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

References: 
 >gcc and extended character source code (From: Peter Mulholland <email@hidden>)

  • Prev by Date: WebObjects Template in Xcode 3.0
  • Next by Date: What's proper way to exit IB?
  • Previous by thread: Re: gcc and extended character source code
  • Next by thread: XCode Static Libraries
  • Index(es):
    • Date
    • Thread