Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Problem inputting Japanese using XIM
- X-seq: zsh-workers 16469
- From: Daiki Ueno <ueno@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Problem inputting Japanese using XIM
- Date: Mon, 21 Jan 2002 16:01:43 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hello,
I'm wondering why zsh considers characters in the [0x80, 0xa0] range
as control characters? Without the patch below, I couldn't input any
UTF-8 text via XIM. For example, the series of characters 0xe3 0x81
0x82 corresponding the Japanese "a" are translated into the following
byte sequence in the typescript:
0xe3 0xe5(= ^) 0xc1(= 0x81 | '@') 0xe5 0xc2(= 0x82 | '@')
Index: utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.39
diff -u -F^( -r1.39 utils.c
--- utils.c 2002/01/06 01:07:23 1.39
+++ utils.c 2002/01/21 06:08:19
@@ -2160,7 +2160,7 @@
for (t0 = 0; t0 != 256; t0++)
typtab[t0] = 0;
for (t0 = 0; t0 != 32; t0++)
- typtab[t0] = typtab[t0 + 128] = ICNTRL;
+ typtab[t0] = ICNTRL;
typtab[127] = ICNTRL;
for (t0 = '0'; t0 <= '9'; t0++)
typtab[t0] = IDIGIT | IALNUM | IWORD | IIDENT | IUSER;
Regards,
--
Daiki Ueno
Messages sorted by:
Reverse Date,
Date,
Thread,
Author