• 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: Possible Clang Bug in Initializing Wide String From String Literal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible Clang Bug in Initializing Wide String From String Literal?


  • Subject: Re: Possible Clang Bug in Initializing Wide String From String Literal?
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 20 May 2011 05:46:29 -0700

On May 20, 2011, at 2:16 AM, Andreas Grosam <email@hidden> wrote:

> Of course, the source file will not be changed when compiling with different compilers.

No, but it can be if edited (say accidentally) between compilations. Opening and re-saving the file could change its composition, for example, to whatever the editor you're using prefers.

> However, the individual bytes of the source file can be interpreted differently - regardless of the actual encoding of the source file. For sure, gcc treats it as UTF-8 - and it IS UTF-8.

There are multiple valid UTF-8 representations for Unicode "ΓΌ" and which representation a particular compiler uses in a compiled string literal - regardless of which one you entered - is, so far as I know, entirely implementation-defined.

  -- Chris

 _______________________________________________
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: 
 >Possible Clang Bug in Initializing Wide String From String Literal? (From: Andreas Grosam <email@hidden>)
 >Re: Possible Clang Bug in Initializing Wide String From String Literal? (From: Sean McBride <email@hidden>)
 >Re: Possible Clang Bug in Initializing Wide String From String Literal? (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Possible Clang Bug in Initializing Wide String From String Literal?
  • Next by Date: Xcode 4 always spinning after opening the project
  • Previous by thread: Re: Possible Clang Bug in Initializing Wide String From String Literal?
  • Next by thread: Bug with NSPredicateEditor in Xcode 4
  • Index(es):
    • Date
    • Thread