From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [9fans] awk, not utf aware... From: Steven Vormwald To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> In-Reply-To: References: <62de1c2c6c8cd64152312915825615eb@plan9.bell-labs.com> Content-Type: text/plain Date: Tue, 26 Feb 2008 16:32:52 -0500 Message-Id: <1204061572.6925.14.camel@wren> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 6312372c-ead3-11e9-9d60-3106f5b1d025 On Tue, 2008-02-26 at 16:21 -0500, Pietro Gagliardi wrote: > And it's wonderful that the C standard defines a character literal as > so: > > char-literal: > ' characters ' > characters: > character > characters character > > (or something like that) > > Question, then: why do we need wchar_t/Rune? The definitions are (<> used to indicate non-terminals in the grammar...): (6.4.4.4) character-constant: ' ' L' ' (6.4.4.4) c-char-sequence: (6.4.4.4) c-char: any member of the source character set except the single-quote ', backslash \, or new-line character Steven Vormwald sdvormwa@mtu.edu