Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.1.5: bad handling of 8 bit character



Marc Baudoin wrote:
> Hi,
> 
> I've upgraded from zsh 3.0.5 to try zsh 3.1.5 and I noticed two
> problems.
> 
> The new zsh seems to have problems with files whose name contains
> non ASCII characters:

I suspect this was my fault last time I fiddled with input.c.  It only
shows up on machines where char is signed, so I didn't notice it.  At
least, this seems to do the trick for SUNOS, where I was seeing the
problem.

*** Src/input.c.lastc	Sat Sep 26 19:02:15 1998
--- Src/input.c	Thu Nov 12 14:18:23 1998
***************
*** 176,182 ****
  int
  ingetc(void)
  {
!     char lastc;
  
      if (lexstop)
  	return ' ';
--- 176,182 ----
  int
  ingetc(void)
  {
!     int lastc;
  
      if (lexstop)
  	return ' ';

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarotti 2, 56100 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author