• 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: Any way to get 16-bit string literals?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to get 16-bit string literals?


  • Subject: Re: Any way to get 16-bit string literals?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 5 Oct 2009 09:48:47 -0700


On Oct 5, 2009, at 8:32 AM, Stéphane Beauchemin wrote:

Have you tried to use gcc or g++ option: -fwide-exec-charset=charset ?

I don't think that changes the width of the characters, just the charset used. From the GCC docs:

-fwide-exec-charset=charset
Set the wide execution character set, used for wide string and character constants. The default is UTF-32 or UTF-16, whichever corresponds to the width ofwchar_t. As with -fexec-charset, charset can be any encoding supported by the system's iconv library routine; however, you will have problems with encodings that do not fit exactly in wchar_t. 

Note the last sentence — UTF-16 will not fit exactly in wchar_t since the latter is 32 bits.

—Jens

 _______________________________________________
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: 
 >re: Any way to get 16-bit string literals? (From: Jean-Denis Muys <email@hidden>)
 >Re: Any way to get 16-bit string literals? (From: Jens Alfke <email@hidden>)
 >Re: Any way to get 16-bit string literals? (From: Ken Thomases <email@hidden>)
 >RE: Any way to get 16-bit string literals? (From: Stéphane Beauchemin <email@hidden>)

  • Prev by Date: RE: Any way to get 16-bit string literals?
  • Next by Date: RE: Any way to get 16-bit string literals?
  • Previous by thread: RE: Any way to get 16-bit string literals?
  • Next by thread: RE: Any way to get 16-bit string literals?
  • Index(es):
    • Date
    • Thread