• 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: printf functions fail with non-ascii characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >printf functions fail with non-ascii characters (From: "William H. Schultz" <email@hidden>)
 >Re: printf functions fail with non-ascii characters (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: PowerPC library in Intel Application
  • Next by Date: Re: Oddity when zipping my build folder
  • Previous by thread: Re: printf functions fail with non-ascii characters
  • Next by thread: Re: printf functions fail with non-ascii characters
  • Index(es):
    • Date
    • Thread