Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101333 - xterm fails to start when eightBitInput resource is false
Summary: xterm fails to start when eightBitInput resource is false
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 07:26 UTC by Alexander Meyer
Modified: 2005-10-03 05:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Meyer 2005-08-04 07:26:53 UTC
when i try to start xterm with eightBitInput set to false it would display the
following error message:

xterm: Error 23, errno 22: Invalid argument
Reason: spawn: ioctl() failed on TIOCSETP

with eightBitInput set to true xterm starts up properly but it won't recognize
my meta-keys (alt)

Reproducible: Always
Steps to Reproduce:
1. set xresource eightBitInput to false
2. start xterm


Actual Results:  
i had to use another terminal emulator


Expected Results:  
i expected xterm to run and recognize my meta-keys


Portage 2.0.51.22-r2 (default-linux/ppc/2004.2, gcc-3.4.4,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r6 ppc)
=================================================================
System uname: 2.6.12-gentoo-r6 ppc 7450, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.90.0.3-r5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.4.19-r1, 2.6.8.1-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://www.fhh.opensource-mirror.de/gentoo.org/
ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/
rsync://rsync.fhh.opensource-mirror.de/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aac aalib airport alsa altivec bash-completion berkdb bitmap-fonts
browserplugin bzip2 calendar cdparanoia cdr crypt cscope cups curl decss dga
directfb dvd dvdread emboss encode ethereal fam fbcon ffmpeg font-server fortran
gb gd gdbm gif gpg gphoto2 gtk gtk2 ieee1394 imagemagick imap imlib ipv6 jack
java jpeg lcms ldap libg++ libwww lirc maildir mbox mikmod motif mozcalendar
mozdevelop mozilla mozsvg mp3 mpeg mysql nas nasm ncurses network nls nntp
offensive ogg oggvorbis opengl pam pcmcia pcsc-lite pda pdflib perl png pnp
python qt readline samba sdl slang smartcard snmp spell ssl tcl tcltk tcpd tex
theora tiff tk truetype truetype-fonts type1-fonts unicode userlocales vorbis
wifi xine xml xml2 xmms xprint xv xvid zlib video_cards_radeon userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-05 05:18:39 UTC
Please everyone, test xterm-204 that just went into this tree to see if it
solves any of your issues.  It works pretty nicely for me.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-05 05:23:29 UTC
Adding Thomas to cc.
Comment 3 Thomas Dickey 2005-08-05 06:06:34 UTC
This sounds like the fix in #201 for Debian #298551.
Comment 4 Alexander Meyer 2005-08-08 03:42:26 UTC
(In reply to comment #3)
> This sounds like the fix in #201 for Debian #298551.

exactly. but #201 isn't in my portage-tree and #202 (which was masked) didn't
solve the issue. it just seemed to ignore the "eightBitInput" resource and thus
didn't recognize the meta-keys regardless of the resource being set to true or
false. i'll try #204 as suggested and report on the results as soon as i get home.
Comment 5 Thomas Dickey 2005-08-08 05:57:00 UTC
Recognizing the meta-key and starting with eightBitInput
are really two separate issues.  For some cases, the
meta-key won't be recognized, and I had added a metaSendsEscape
resource to address that.  Since it's been a while since I
made changes to the handling of meta-keys, I'd need more
information to see how to respond to that (whether it's
an xterm bug, or X libraries, or configuration, et).
Comment 6 Alexander Meyer 2005-08-08 13:40:22 UTC
i tried the 204 ebuild and it behaves the same way as the 202 ebuilds.
they would start with the eightBitInput recource set to false but the resource
had no effect. also trying all possible combinations of eightBitInput and
metaSendsEscape did not help anything.

Comment 7 Thomas Dickey 2005-08-08 15:40:31 UTC
Well bear in mind that I maintain xterm and am not running GenToo.
So I'm not familiar with the details of the ebuild.  But when I
test xterm's eightBitInput option, it does what I expect it to.

Here's what I have in xmodmap - the alt key is functioning as the
meta key.  Your configuration would probably be different.  If I'm
testing a bug, I compile xterm using the --enable-trace option of
the configure script.  That logs the information that it uses to
decide which key is the meta key, etc:

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3   
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)
Comment 8 Alexander Meyer 2005-08-11 10:51:46 UTC
after tweaking my .xmodmap the alt-keys now send the proper escape-sequences and
everything is working fine.

the bug from versionn #200 is solved since xterm no longer crashes when the
eightBitinput resource is set to false in version #204. so regarding to me this
bug is solved (at least in version #204). it is still present in #200 though so
i'll leave the bug-status untouched and leave the decision about what to do
whith it to the maintainer.

thanks for your help everyone!
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2005-09-16 04:41:21 UTC
Arch teams -- xterm-204 is a candidate for stabling
Comment 10 nixnut (RETIRED) gentoo-dev 2005-09-16 09:42:17 UTC
Stable on ppc
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2005-09-16 09:53:43 UTC
Sorry, forgot to remove ppc@g.o
Comment 12 Mark Loeser (RETIRED) gentoo-dev 2005-09-16 13:18:05 UTC
Stable on x86
Comment 13 Fernando J. Pereda (RETIRED) gentoo-dev 2005-09-16 14:04:58 UTC
Stable on alpha

Cheers
Ferdy
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2005-09-17 00:19:47 UTC
stable on ppc64 
Comment 15 Gustavo Zacarias (RETIRED) gentoo-dev 2005-09-19 05:54:56 UTC
sparc stable.
Comment 16 Hardave Riar (RETIRED) gentoo-dev 2005-09-20 02:10:15 UTC
Stable on mips.
Comment 17 Seemant Kulleen (RETIRED) gentoo-dev 2005-10-03 05:52:45 UTC
thanks arch teams