Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: various weirdnesses with unicode support
- X-seq: zsh-workers 21720
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: various weirdnesses with unicode support
- Date: Fri, 9 Sep 2005 17:52:44 +0100
- In-reply-to: <237967ef050909053330303540@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <237967ef05090713304637c1f1@xxxxxxxxxxxxxx> <20050908085533.GA2463@fargo> <200509081002.j88A215f024377@xxxxxxxxxxxxxx> <20050908113246.52522e05.pws@xxxxxxx> <237967ef0509080731646f7306@xxxxxxxxxxxxxx> <20050909125341.12a21423.pws@xxxxxxx> <237967ef050909053330303540@xxxxxxxxxxxxxx>
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'?';
}
else
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