zsh-workers
 help / color / mirror / code / Atom feed
* Problem inputting Japanese using XIM
@ 2002-01-21  7:01 Daiki Ueno
  2002-01-21 23:24 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Daiki Ueno @ 2002-01-21  7:01 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-22  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-21  7:01 Problem inputting Japanese using XIM Daiki Ueno
2002-01-21 23:24 ` Bart Schaefer
2002-01-22  2:35   ` Daiki Ueno

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).