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

Re: various weirdnesses with unicode support

Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> As for confusing zsh with keyboard input, just running a terminal in
> some iso-8859 mode and running export LC_CTYPE=xx_XX.UTF-8 should be
> enough to trigger the thing i talked about, since zsh then expects the
> input to be UTF-8.

Something like this worked... this leads to the following patch which
should improve matters a bit.

Index: Src/Zle/zle_main.c
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_main.c,v
retrieving revision 1.74
diff -u -r1.74 zle_main.c
--- Src/Zle/zle_main.c	9 Sep 2005 11:48:28 -0000	1.74
+++ Src/Zle/zle_main.c	9 Sep 2005 16:50:19 -0000
@@ -814,7 +814,8 @@
 		 * timed out.  This probably indicates a duff character.
 		 * Return a '?'.
-		lastchar_wide = L'?';
+		lastchar = '?';
+		return lastchar_wide = L'?';
 		return lastchar_wide = WEOF;

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

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.


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