Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!necntc!necis!weinberg From: weinberg@necis.UUCP (Glenn Weinberg) Newsgroups: comp.emacs Subject: GNU Emacs mucking with stty settings Message-ID: <586@necis.UUCP> Date: 14 Jan 88 18:27:30 GMT Reply-To: weinberg@necis.nec.com (Glenn Weinberg) Organization: NEC Information Systems, Acton, MA Lines: 35 Keywords: emacs stty parity We've recently run into a problem with GNU Emacs (18.48, SysV/68 derivative system) mucking with stty settings. In particular, the following code can be found in sysdep.c: #ifdef HAVE_TERMIO . . . #ifdef CS8 sg.c_cflag |= CS8; /* allow 8th bit on input */ sg.c_cflag &= ~PARENB; /* Don't check parity */ #endif This causes us problems on terminals that are actually set to use 7-bit characters with even parity, as many of our terminals are. I've commented this code out in our version, and it seems to be behaving properly. Now, I understand that Emacs wants to be able to handle 8-bit characters, but if the terminal is configured for 7-bit characters, Emacs isn't going to see any 8-bit characters. So, my questions are: 1) Is anything going to break if Emacs doesn't see a character size of 8 with no parity? 2) If not, does anybody know why this code is here? Any insights would be greatly appreciated. Thank you. -- Glenn Weinberg (weinberg@necis.nec.com) NEC Information Systems, 289 Great Road, Acton, MA 01720 (617) 263-3833 x222 After 01 Feb 88: 1300 Massachusetts Ave., Boxborough, MA 01719 (617) 635-6278 After 16 Jul 88: 1300 Massachusetts Ave., Boxborough, MA 01719 (508) 635-6278