tags 673341 +patch
thanks

I can confirm this bug too. It also breaks the kana input mode :(

Attached is a patch for fixing this, but I don't know if it breaks any
other OSes; I've done it by looking at the delta between 24-7 and 24-8.
The patch restores the following for me on Linux:

- ^D (exit)
- @/# (kana input mode)
- \ (kanji dictionary mode)

thanks,
iustin
--- b/xjdic-24/xjdfrontend.c	2012-09-11 08:35:32.000000000 +0900
+++ xjdic-24/xjdfrontend.c	2012-09-11 08:43:00.052106564 +0900
@@ -252,11 +252,19 @@
     new.sg_flags |= CBREAK; new.sg_flags &= ~ECHO;
     ioctl(0, TIOCSETP, &new);
 #else
+#ifdef __GNU__
     tcgetattr(0, &orig); tcgetattr(0, &new);
+#else
+    ioctl(0, TCGETA, &orig); ioctl(0, TCGETA, &new);
+#endif
     new.c_lflag &= ~ICANON; new.c_lflag &= ~ISIG; new.c_lflag &= ~ECHO;
     new.c_lflag &= ~IXON;
     new.c_cc[VMIN] = 1; new.c_cc[VTIME] = 0;
+#ifdef __GNU__
     tcsetattr(0, TCSANOW, &new);
+#else
+    ioctl(0, TCSETA, &new);
+#endif
 #endif
     myi_status=IOCTL_RAW;
   }
@@ -267,8 +275,10 @@
 {
 #ifdef __STRICT_BSD__
    ioctl(0, TIOCSETP, &orig);
-#else
+#elif defined(__GNU__)
    tcsetattr(0, TCSANOW, &orig);
+#else
+   ioctl(0, TCSETA, &orig);
 #endif
     myi_status = IOCTL_ORIG;
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to