From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id WAA14023 for ; Wed, 18 Oct 1995 22:50:00 +1000 (EST) Received: from euclid (euclid.skiles.gatech.edu) by gatech.edu with SMTP id AA00865 (5.65c/Gatech-10.0-IDA for ); Wed, 18 Oct 1995 08:48:00 -0400 Received: by euclid (5.x/SMI-SVR4) id AA04699; Wed, 18 Oct 1995 08:46:48 -0400 Resent-Date: Wed, 18 Oct 1995 13:47:25 +0100 (MET) Old-Return-Path: From: Zoltan Hidvegi Message-Id: <199510181247.NAA31596@bolyai.cs.elte.hu> Subject: Re: still bugs with 8-bit chars :-( To: coleman@math.gatech.edu (Richard Coleman) Date: Wed, 18 Oct 1995 13:47:25 +0100 (MET) Cc: zsh-workers@math.gatech.edu (zsh-workers) In-Reply-To: <9510180442.AA24279@redwood.skiles.gatech.edu> from "Richard Coleman" at Oct 18, 95 00:42:49 am X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-Id: <"HPXxk3.0.L91.tSFXm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/477 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Richard wrote: > Since we already casting anyway, wouldn't the line > > return lastc = (int)(unsigned short)*inbufptr++; > > do just as well. I don't ever use 8-bit characters, so I not > positive about this. Yes, that should work as well. Even a simple (unsigned)*inbufptr++ should work, as this can be seen in hist.c near line 289. Cheers, Zoltan