Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Encoding of character literals |
| Date | 2011-11-03 17:09 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <4EB302F4.3060504@verizon.net> (permalink) |
| References | <j8uu94$jbd$1@oravannahka.helsinki.fi> |
On 11/03/2011 04:41 PM, Lauri Alanko wrote: ... > Is it perhaps guaranteed that ((wchar_t) 'a' == L'a')? I'm no expert on internationalization - as a US programmer I've never had any need to worry about it. However, that question at least I can answer: C99 says, in effect, that the above expression is guaranteed to be true if the implementation does not pre-define __STDC_MB_NEQ_WC__ (7.17p2). 6.10.8p1 seems to indicate that definition of the macro with a value of 1 is mandatory - but that might be an example of poor wording or a misinterpretation on my part. It seems inconsistent with the "if" in 7.17p2.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Encoding of character literals Lauri Alanko <la@iki.fi> - 2011-11-03 20:41 +0000
Re: Encoding of character literals James Kuyper <jameskuyper@verizon.net> - 2011-11-03 17:09 -0400
Re: Encoding of character literals Harald van Dijk <truedfx@gmail.com> - 2011-11-03 14:51 -0700
Re: Encoding of character literals Lauri Alanko <la@iki.fi> - 2011-11-10 14:02 +0000
Re: Encoding of character literals lawrence.jones@siemens.com - 2011-11-10 12:23 -0500
csiph-web