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

Re: Another idea on how to insert illegal multibyte characters

Wayne Davison wrote:
> On Thu, Jan 12, 2006 at 09:23:19AM +0000, Peter Stephenson wrote:
> > The completion system is a bit more quoting aware: it knows whether or
> > not it needs to insert a backslash before special characters because of
> > quotes earlier on the line.  Ideally it should handle unprintable
> > characters at the same point where it tries to do that.  That doesn't
> > need to be done at the same time, though.  (I would hope it could be
> > done independently and prevent the equivalent code inside zle kicking
> > in.)
> The attached patch is an alternative to my older patch that changed
> stringaszleline().  This one changes add_match_data(), which means that
> it is happening early enough that zsh could be made to figure out how
> to insert the $'\123' sequences into single- or double-quoted strings
> (though it does not yet do this).  This patch also fixes the updating
> glitch that I mentioned my last patch had.

Any reasonably consistent attempt to do this, even if it's incomplete,
strikes me as a good thing.  4.3.1 isn't going to be completely
multibyte-aware anyway.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070

To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

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