[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#319179: uxterm and utf-8 font selection



Package: xterm
Version: 6.8.2.dfsg.1-3
Severity: normal

The file /etc/X11/app-defaults/UXTerm says:

! The fonts here are duplicated in "XTerm" by "*VT100.utf8fonts", but are
! left here for compatibility:
*VT100*font2:   -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100*font:    -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100*font3:   -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100*font4:   -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100*font5:   -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100*font6:   -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1

If I understand correctly, such *VT100*font resources are no longer used
and are now replaced by *VT100.utf8fonts resources (preferably). But this
doesn't seem to be the case. Indeed, if I do the following:

dixsept:~> cp -R /etc/X11/app-defaults .
dixsept:~> export XAPPLRESDIR=$HOME/app-defaults/
dixsept:~> export XFILESEARCHPATH=$HOME/app-defaults/
dixsept:~> uxterm

and in the uxterm, I type "echo \\u20ac", I get the Euro symbol as expected.
But now, if I remove the lines

*VT100*font2:   -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100*font:    -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100*font3:   -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100*font4:   -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100*font5:   -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100*font6:   -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1

from the $HOME/app-defaults/UXTerm file, restart uxterm and type
"echo \\u20ac", then the Euro symbol is no longer visible. This
means that the above lines were really necessary. This is either
a bug in the xterm program or the above comment is incorrect.
IMHO, the *VT100.utf8fonts resources should have the precedence,
so I rather see it a bug in the xterm program.

Note, before the removal of the lines:

dixsept:~> appres UXTerm|grep 'VT100.*font2'
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100*font2:   -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1

and after their removal:

dixsept:~> appres UXTerm|grep 'VT100.*font2'
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100*font2:   5x7

and I have:

*VT100*utf8:    1

in both cases.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.10-20050517
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages xterm depends on:
ii  libc6                     2.3.2.ds1-22   GNU C Library: Shared libraries an
ii  libexpat1                 1.95.8-3       XML parsing C library - runtime li
ii  libfontconfig1            2.3.2-1        generic font configuration library
ii  libfreetype6              2.1.10-1       FreeType 2 font engine, shared lib
ii  libice6                   6.8.2.dfsg.1-3 Inter-Client Exchange library
ii  libncurses5               5.4-9          Shared libraries for terminal hand
ii  libselinux1               1.24-1         SELinux shared libraries
ii  libsm6                    6.8.2.dfsg.1-3 X Window System Session Management
ii  libxaw8                   6.8.2.dfsg.1-3 X Athena widget set library
ii  libxext6                  6.8.2.dfsg.1-3 X Window System miscellaneous exte
ii  libxft2                   2.1.7-1        FreeType-based font drawing librar
ii  libxmu6                   6.8.2.dfsg.1-3 X Window System miscellaneous util
ii  libxp6                    6.8.2.dfsg.1-3 X Window System printing extension
ii  libxpm4                   6.8.2.dfsg.1-3 X pixmap library
ii  libxrender1               1:0.9.0-2      X Rendering Extension client libra
ii  libxt6                    6.8.2.dfsg.1-3 X Toolkit Intrinsics
ii  xlibs                     6.8.2.dfsg.1-3 X Window System client libraries m
ii  xlibs-data                6.8.2.dfsg.1-3 X Window System client data

Versions of packages xterm recommends:
ii  xutils                   4.3.0.dfsg.1-14 X Window System utility programs

-- no debconf information



Reply to: