Re: printf functions fail with non-ascii characters
Re: printf functions fail with non-ascii characters
- Subject: Re: printf functions fail with non-ascii characters
- From: "Sean McBride" <email@hidden>
- Date: Fri, 7 Sep 2007 12:50:40 -0400
- Organization: Rogue Research
On 9/5/07 1:14 PM, Fritz Anderson said:
>> For the record, the source code is UTF-8, no BOM.
>
>Strictly speaking, no it isn't. Not so far as gcc is concerned. Your
>UTF-8 multibyte sequences are interpreted by the compiler as sequences
>of 8-bit characters. Sometimes that works, but that's just luck.
I agree that using anything but ASCII with gcc is fragile, but I don't
think your statement is correct. gcc's man page seems to say that the '-
finput-charset' option allows you to specify the encoding of the file
you are asking it to compile. Without that flag, gcc assumes UTF8.
--
____________________________________________________________
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