Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95858

Summary: xterm 200-r2 ebuild wipes out systemwide XTerm settings
Product: Gentoo Linux Reporter: Dan Foster <dsf>
Component: Current packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dan Foster 2005-06-12 05:47:29 UTC
Problem: after upgrading to xterm 200-r2, I suddenly cannot view Unicode text in
xterm sessions.

Eventually traced to src_install() in 200-r2 which does:

        echo "*allowWindowOps:  false" > ${D}/etc/X11/app-defaults/XTerm
        echo "*allowWindowOps:  false" > ${D}/etc/X11/app-defaults/UXTerm

This doesn't append; it overwrites, which wipes out a lot of valuable default
settings.

Fix should be as simple as changing from > to >>

I eventually restored my /etc/X11/app-defaults/XTerm file from backups, added in
that suggested change, and then I was able to view Unicode text again.

Next xterm with this fix may need to reinstall the default XTerm and UXTerm file
as well (with the windowsOps fix merged in).

Reproducible: Always
Steps to Reproduce:
1. # ls -l /etc/X11/app-defaults/XTerm
   Note: 4582 bytes
2. # emerge =xterm-200-r2
3. # etc-update
4. $ ls -l /etc/X11/app-defaults/XTerm
   Note: 24 bytes

This is the easiest way to demonstrate the issue without anyone needing to make
their Gentoo system locale-aware.
Actual Results:  
I cat'd a UTF-8 encoded test file.

Cyrillic characters did not display, but ASCII characters did.

Expected Results:  
It should have had displayed the ASCII and Cyrillic characters.

xterm was unable to display non-ASCII charsets because of UTF-8 specific
settings had been wiped out from /etc/X11/app-defaults/XTerm due to the xterm
200-r2 src_install function doing overwrite instead of append.

Gentoo Base System version 1.6.12
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.200
41102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.60GHz
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  6 2005, 22:55:47)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share
/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar
e/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://gentoo.mirrors.pair.
com/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo ftp://f
tp.gtlib.cc.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl aim alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups 
curl dvd emboss encode fbcon flac foomaticdb fortran gd gdbm gif gpm gtk2 imagem
agick imap imlib ipv6 java jpeg ldap lesstif libg++ libwww mad maildir mikmod mo
tif mozilla mp3 mpeg msn ncurses nls objc ogg oggvorbis opengl oss pam pdflib pe
rl php png python quicktime readline sasl scanner sdl slang snmp spell ssl svga 
tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis xine xml2
 xmms xv yahoo zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-06-13 04:11:39 UTC
-r3 is out with a fix.  I'm really sorry about that :/