Re: gcc and extended character source code
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