Bug#693194: twm: does not handle UTF-8 locales
Package: twm
Version: 1:1.0.4-2
Severity: normal
*** Please type your report below this line ***
Not sure the title of this report is correct.
I've been having an issue with twm where the decorations in the window titl=
e
tabs are in a font size that does not match the text used in the tab, even
when all the *Font properties in .twmrc are set to the same font.
To reproduce my initial issue:
sh$ grep -v ^# ~/.twmrc |grep Font
ResizeFont "fixed"
sh$ env|grep LC
NLSPATH=3D/usr/share/locale/%L/LC_MESSAGES/%N.cat:/usr/share/locale/%L/LC_M=
ESSAGES/%N.cat
sh$ env|grep en_AU
LANGUAGE=3Den_AU:en
LANG=3Den_AU.UTF-8
XTERM_LOCALE=3Den_AU.UTF-8
sh$ killall twm
sh$ LANG=3Den_AU.UTF-8 twm
<starts but fonts are mismatched>
sh$ $ LANG=3DC twm
<starts and fonts are correct>
Experimenting with removing .twmrc entirely found another issue:
twm fails to start unless the locale is something it is comfortable with.
sh$ mv ~/.twmrc ~/twmrc
sh$ killall twm
sh$ LANG=3Den_AU.UTF-8 twm
twm: unable to open fontset "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*=
-*-*"
sh$ echo $?
1
sh$ $ LANG=3DC twm
<works>
sh$ LANG=3Den_US.UTF-8 twm
<works>
Kind regards
-- System Information:
Debian Release: 6.0.5
APT prefers stable
APT policy: (990, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=3DC, LC_CTYPE=3DC (charmap=3DANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages twm depends on:
ii libc6 2.11.3-3 Embedded GNU C Library: Shared=
lib
ii libice6 2:1.0.6-2 X11 Inter-Client Exchange libr=
ary
ii libsm6 2:1.1.1-1 X11 Session Management library
ii libx11-6 2:1.3.3-4 X11 client-side library
ii libxext6 2:1.1.2-1 X11 miscellaneous extension li=
brar
ii libxmu6 2:1.0.5-2 X11 miscellaneous utility libr=
ary
ii libxt6 1:1.0.7-1 X11 toolkit intrinsics library
ii menu 2.1.44 generates programs menu for al=
l me
ii x11-common 1:7.5+8+squeeze1 X Window System (X.Org) infras=
truc
twm recommends no packages.
twm suggests no packages.
This may be relevant:
$ dpkg -l|grep font|grep ^ii
ii console-setup 1.68+squeeze2 console fon=
t and keymap setup program
ii console-terminus 4.30-2 Fixed-width=
fonts for fast reading on the Linux console
ii defoma 0.11.11 Debian Font=
Manager -- automatic font configuration framework
ii fontconfig 2.8.0-2.1 generic fon=
t configuration library - support binaries
ii fontconfig-config 2.8.0-2.1 generic fon=
t configuration library - configuration
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 Fonts for t=
he Ghostscript interpreter(s)
ii gsfonts-x11 0.21 Make Ghosts=
cript fonts available to X11
ii kbd 1.15.2-2 Linux conso=
le font and keytable utilities
ii latex-xft-fonts 1.6.7-1 TrueType ve=
rsions of some TeX fonts -- transitional package
ii libfontconfig1 2.8.0-2.1 generic fon=
t configuration library - runtime
ii libfontconfig1-dev 2.8.0-2.1 generic fon=
t configuration library - development
ii libfontenc1 1:1.0.5-2 X11 font en=
coding library
ii libfreetype6 2.4.2-2.1+squeeze4 FreeType 2 =
font engine, shared library files
ii libfreetype6-dev 2.4.2-2.1+squeeze4 FreeType 2 =
font engine, development files
ii libgraphite3 1:2.3.1-0.2 SILGraphite=
- a "smart font" rendering engine
ii libt1-5 5.1.2-3+squeeze1 Type 1 font=
rasterizer library - runtime
ii libxfont1 1:1.4.1-3 X11 font ra=
sterisation library
ii libxft-dev 2.1.14-2 FreeType-ba=
sed font drawing library for X (development files)
ii libxft2 2.1.14-2 FreeType-ba=
sed font drawing library for X
ii lmodern 2.004.1-3 scalable Po=
stScript and OpenType fonts based on Computer Modern
ii psfontmgr 0.11.11 PostScript =
font manager -- part of Defoma, Debian Font Manager
ii sun-java6-fonts 6.26-0squeeze1 Lucida True=
Type fonts (from the Sun JRE)
ii texlive-font-utils 2009-10 TeX Live: T=
eX and Outline font utilities
ii texlive-fonts-extra 2009-10 TeX Live: E=
xtra fonts
ii texlive-fonts-recommended 2009-11+squeeze1 TeX Live: R=
ecommended fonts
ii ttf-bitstream-vera 1.10-8 The Bitstre=
am Vera family of free TrueType fonts
ii ttf-dejavu-core 2.31-1 Vera font f=
amily derivate with additional characters
ii ttf-dejavu-extra 2.31-1 Vera font f=
amily derivate with additional characters
ii ttf-freefont 20090104-7 Freefont Se=
rif, Sans and Mono Truetype fonts
ii ttf-lyx 1.6.7-1 TrueType ve=
rsions of some TeX fonts
ii ttf-mscorefonts-installer 3.3 Installer f=
or Microsoft TrueType core fonts
ii ttf-opensymbol 1:3.2.1-11+squeeze8 OpenSymbol =
TrueType font
ii ttf-sil-gentium-basic 1.1-2 smart Unico=
de font families (Basic and Book Basic) based on Gentium
ii x11-xfs-utils 7.4+1 X font serv=
er utilities
ii xfonts-100dpi 1:1.0.1 100 dpi fon=
ts for X
ii xfonts-75dpi 1:1.0.1 75 dpi font=
s for X
ii xfonts-base 1:1.0.1 standard fo=
nts for X
ii xfonts-encodings 1:1.0.3-1 Encodings f=
or X.Org fonts
ii xfonts-scalable 1:1.0.1-1 scalable fo=
nts for X
ii xfonts-utils 1:7.5+2 X Window Sy=
stem font utility programs
--
Reply to: