Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | James Kuyper <jameskuyper@verizon.net> |
| Newsgroups | comp.lang.c |
| Subject | Re: Encoding of character literals |
| Date | Thu, 03 Nov 2011 17:09:08 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 13 |
| Message-ID | <4EB302F4.3060504@verizon.net> (permalink) |
| References | <j8uu94$jbd$1@oravannahka.helsinki.fi> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="2P71cupDoazVVolqpw1jrw"; logging-data="9514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WJccY/7JEuo7haeTWLX5pCUfVI7lMfYA=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 |
| In-Reply-To | <j8uu94$jbd$1@oravannahka.helsinki.fi> |
| Cancel-Lock | sha1:2U0B0ecL4Ei/87+PnA0eu+845Y8= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c:12626 |
Show key headers only | View raw
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