Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: (New) bug with multibyte characters
- X-seq: zsh-workers 21870
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: PATCH: (New) bug with multibyte characters
- Date: Thu, 13 Oct 2005 13:49:48 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
My change of INULL() was too wide-ranging and caused strange features,
particularly with Cyrillic characters where bytes were matched by INULL()
but not by imeta().
Index: Src/zsh.h
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/zsh.h,v
retrieving revision 1.77
diff -u -r1.77 zsh.h
--- Src/zsh.h 11 Oct 2005 16:48:06 -0000 1.77
+++ Src/zsh.h 13 Oct 2005 12:48:06 -0000
@@ -163,7 +163,7 @@
*/
#define Nularg ((char) 0x9c)
-#define INULL(x) (((x) & 0xf8) == 0x98)
+#define INULL(x) ((x) >= Snull && (x) <= Nularg)
/*
* Take care to update the use of IMETA appropriately when adding
--
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 message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author