zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi  <hzoli@cs.elte.hu>
To: carlos@snfep1.if.usp.br (Carlos Carvalho)
Cc: zsh-workers@math.gatech.edu (zsh-workers)
Subject: Re: still bugs with 8-bit chars :-(
Date: Tue, 17 Oct 1995 16:02:16 +0100 (MET)	[thread overview]
Message-ID: <199510171502.QAA27274@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199510171246.KAA01877@snfep1.if.usp.br> from "Carlos Carvalho" at Oct 17, 95 10:46:07 am

Carlos Carvalho wrote:
> 
> The problem with accented chars still exist, and this time also in
> completion. If you try to complete the file "revalida\347\343o.tex"
> (the \??? are the ascii spelling of the octal codes) it starts to
> complete all files in the directory.
> 
> If you type the name directly such as in "tex revalida\347\343o.tex",
> zsh cuts it before the first accented char, and thinks that "o.tex" is
> another command.
> 
> This is after applying Peter's patch.

This works for me with 2.6-beta11-test9-hzoli11.  2.6-beta11-test9 should also
work.

However, Peter's patch is not perfect, since it uses a cast from char to
unsignec char, which is broken with some compilers.  Here is a fix for that.
If you have a buggy compiler, this may be your problem.

Bye,
  Zoltan

*** 1.2	1995/10/10 18:20:38
--- Src/input.c	1995/10/17 14:57:56
***************
*** 109,115 ****
  	if (inbufleft) {
  	    inbufleft--;
  	    inbufct--;
! 	    return lastc = (int)(unsigned char)*inbufptr++;
  	}
  	/*
  	 * No characters in input buffer.
--- 109,115 ----
  	if (inbufleft) {
  	    inbufleft--;
  	    inbufct--;
! 	    return lastc = STOUC(*inbufptr++);
  	}
  	/*
  	 * No characters in input buffer.


  reply	other threads:[~1995-10-17 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-17 12:46 Carlos Carvalho
1995-10-17 15:02 ` Zoltan Hidvegi [this message]
1995-10-17 21:48   ` Carlos Carvalho
1995-10-18  4:42   ` Richard Coleman
1995-10-18 12:47     ` Zoltan Hidvegi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199510171502.QAA27274@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=carlos@snfep1.if.usp.br \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).