• 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
gcc and unicode support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gcc and unicode support


  • Subject: gcc and unicode support
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 9 Jul 2008 23:34:54 +0200

Hello,

I saw some time ago that Xcode 3.0 include an updated gcc version that support constant unicode strings.

http://lists.apple.com/archives/Cocoa-dev/2008/Apr/msg01885.html

Not for standards C strings (else it would not longer be a C string), but for CF/NSString.

It appears that it does not works with plain c files, but only with obj-c file whatever that code is.
CFString("hé hé hé") will compile correctly if the file has the .m extension but not if the file has the .c extension.


warning: main.c:5: warning: input conversion stopped due to an input byte that does not belong to the input codeset UTF-8


The file is really an utf-8 file (check with Text Edit and HexFiend). The input codeset is right (gcc tell it expects utf-8 in the output message).
Is this a bug in the C parser, or is this an expected limitation.



_______________________________________________ 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: gcc and unicode support
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Data Model, Core Data
  • Next by Date: Re: gcc and unicode support
  • Previous by thread: some classes missing in Eclipse 3.4?
  • Next by thread: Re: gcc and unicode support
  • Index(es):
    • Date
    • Thread