From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id PAA08638 for ; Tue, 28 May 1996 15:03:31 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id AAA06559; Tue, 28 May 1996 00:52:57 -0400 (EDT) Resent-Date: Tue, 28 May 1996 00:52:57 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960527215413.ZM25326@candle.brasslantern.com> Date: Mon, 27 May 1996 21:54:10 -0700 In-Reply-To: Zefram "Re: (NULL == 0) ?" (May 27, 11:54pm) References: <26886.199605272254@stone.dcs.warwick.ac.uk> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.514 14may96) To: Zefram , hzoli@cs.elte.hu (Zoltan Hidvegi), zsh-workers@math.gatech.edu Subject: Re: (NULL == 0) ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"C3Uq.0.Pc1.fQegn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1206 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On May 27, 11:54pm, Zefram wrote: } Subject: Re: (NULL == 0) ? } } >Bart wrote that ANSI C guarantees ASCII in the cases we need so that should } >not cause any problems. } } C doesn't guarantee *any* use of ASCII. It does make some guarantees } about the character set, but nothing involving actual ASCII. Oops, you're right. ANSI only guarantees that character constants will behave "as if" they were read by the stdio library. Sorry about that; I should have remembered, for example, that perfectly good C compilers on the Mac swap the integer values of '\r' and '\n' so that Mac text files will appear to have '\n'-terminated lines. Does zsh assume ASCII ordering of e.g. 'a' .. 'z' anywhere? Or only that all of 'a' .. 'z' etc. are in the range 1 .. 255? I tend to agree with RC that trying too hard to deal with all these obscure cases will only cause more problems than it solves. If we have to do something, perhaps a simple configuration test for ASCII character ordering of the alphanumerics would be sufficient. } (Basically, all the characters that C uses, plus the characters with } escapes like '\a', must be in the character set and distinct [...]) It doesn't even guarantee that, actually, now that my memory has been jogged. Trigraphs were invented because some characters like '[' and ']' aren't in some character sets (e.g. ISO 646). -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"