Re: Any way to get 16-bit string literals?
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= charsetSet 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