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 coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id EAA02824 for ; Wed, 14 Aug 1996 04:43:20 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id OAA17563; Tue, 13 Aug 1996 14:35:30 -0400 (EDT) Resent-Date: Tue, 13 Aug 1996 14:35:30 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199608131834.UAA01455@bolyai.cs.elte.hu> Subject: Re: bug in zsh 3.0-pre6? To: tg@bosun.bm.lu.se (Tomas Gradin) Date: Tue, 13 Aug 1996 20:34:22 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu, tg@bosun.bm.lu.se In-Reply-To: <199608131709.TAA04125@bosun.bm.lu.se> from Tomas Gradin at "Aug 13, 96 07:09:59 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Resent-Message-ID: <"MkTW9.0.II4.nhC4o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1958 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Hello, > > it seems that it has a problem with 8-bit characters immediately following a > redirection (like |, > etc.). > > If I do: > > cat>é > > ..I get: > > zsh: Oops. You discovered a bug in hungetc > > If I precede the 'é' with a space, everything works. Fortunately, this is not a real bug, it's just a missing cast in a debug test. Zoltan *** Src/hist.c 1996/08/12 01:36:46 2.24 --- Src/hist.c 1996/08/13 18:32:08 *************** *** 521,527 **** if (hptr == chline) zerr("hungetc attempted at buffer start", NULL, 0); else { ! if (hptr[-1] != c) /* Someone probably tried to unget something which is * * not returned by hgetc. */ zerr("Oops. You discovered a bug in hungetc", NULL, 0); --- 521,527 ---- if (hptr == chline) zerr("hungetc attempted at buffer start", NULL, 0); else { ! if (hptr[-1] != (char) c) /* Someone probably tried to unget something which is * * not returned by hgetc. */ zerr("Oops. You discovered a bug in hungetc", NULL, 0);