On Tue, Nov 01, 2022 at 09:23:55AM +0100, Andreas Tille wrote:
> Am Sun, Oct 30, 2022 at 04:53:24PM -0400 schrieb Thomas Dickey:
> > > > $ grep font /etc/X11/Xresources/xterm  | grep -v ^!
> > > > *VT100.utf8Fonts.font: fixed

what locale settings are you using?

(that might be relevant - or the choice of desktop/window-manager)

> > > > XTerm.VT100.font1: -*-terminus-*-*-*-16-*-*-*-*-*-*-*
> > > > XTerm.VT100.font2: -*-terminus-*-*-*-18-*-*-*-*-*-*-*                   
> > > >        
> > > > XTerm.VT100.font3: -*-terminus-*-*-*-20-*-*-*-*-*-*-*                   
> > > >        
> > > > XTerm.VT100.font4: -*-terminus-*-*-*-24-*-*-*-*-*-*-*
> > > > XTerm.VT100.font5: -*-terminus-*-*-*-28-*-*-*-*-*-*-*                   
> > > >        
> > > > XTerm.VT100.font6: -*-terminus-*-*-*-32-*-*-*-*-*-*-*
> > 
> > for the record, xfonts-terminus includes all of these sizes.
> > 
> > > > here.  If I uncomment these settings xterm starts.  However, I think 
> > > > xterm should not
> > > 
> > > Is that "uncomment", or "comment"?
> 
> Sorry its "comment".
> 
> > > (the grep seems to indicate that the latter is meant)
> > > 
> > > > crash with segmentation fault when not finding some specified font.

I suppose the problem is something along the lines of the X server
returning some error in using the fonts.  If it were TrueType fonts,
I'd use strace to verify that they're opened -- but for bitmap
fonts, that's done on the server side.

> > > 
> > > agreed -
> > 
> > I've not been able to reproduce the problem, which I suspect is in
> > the error-recovery section of xterm's xtermLoadFont function.
> > 
> > Perhaps seeing the whole set of resources would help
> > (the output of "xrdb -query", too).
> 
> I have:
> 
> $ xrdb -query
> *VT100.utf8Fonts.font:  fixed
> XTermVT100.faceSize:    22
> XTerm*geometry: 111x36
> xterm*vt100.initialFont:        6
> YTerm*geometry: 90x50
> xterm*visualBell:       true
> Rxvt.keysym.Delete:     \b
> Rxvt.termName:  xterm
> XTerm*decTerminalID:    200
> XTerm*color0:   black
> XTerm*color1:   red
> XTerm*color2:   green
> XTerm*color3:   yellow
> XTerm*color4:   blue
> XTerm*color5:   magenta
> XTerm*color6:   cyan
> XTerm*color7:   white
> XTerm*color8:   black
> XTerm*color9:   red
> XTerm*color10:  green
> XTerm*color11:  yellow
> XTerm*color12:  blue
> XTerm*color13:  magenta
> XTerm*color14:  cyan
> XTerm*color15:  white
> XTerm*termName: xterm
> XTerm*title:    XTerm
> XTerm*colorMode:        on
> XTerm*background:       blue
> XTerm*foreground:       white
> XTerm*loginShell:       true
> XTerm*dynamicColors:    on
> 
> 
> The crash happens for
> 
> $ xrdb -query
> *VT100.utf8Fonts.font:  fixed
> XTermVT100.faceSize:    22
> XTerm*geometry: 111x36

hmm - I'm still not seeing _this_ problem.
(by the way, the geometry resource is over-broad, making the font-menu
less than useful).

I used xcfe4 for testing, on a virtual machine.

My most recent snapshot (from 2022/11/01) didn't work - some problem
with X and the window manaager), so I upgraded from 2022/10/29,
to get a workable machine.

Given that (I also have the terminus font installed),
I used "xrdb -load" with these resources, and ran xterm
from the Debian package.  It looks okay to me - no crash.

> XTerm.VT100.font1:      -*-terminus-*-*-*-16-*-*-*-*-*-*-*
> XTerm.VT100.font2:      -*-terminus-*-*-*-18-*-*-*-*-*-*-*
> XTerm.VT100.font3:      -*-terminus-*-*-*-20-*-*-*-*-*-*-*
> XTerm.VT100.font4:      -*-terminus-*-*-*-24-*-*-*-*-*-*-*
> XTerm.VT100.font5:      -*-terminus-*-*-*-28-*-*-*-*-*-*-*
> XTerm.VT100.font6:      -*-terminus-*-*-*-32-*-*-*-*-*-*-*
> xterm*vt100.initialFont:        6
> YTerm*geometry: 90x50
> xterm*visualBell:       true
> Rxvt.keysym.Delete:     \b
> Rxvt.termName:  xterm
> XTerm*decTerminalID:    200
> XTerm*color0:   black
> XTerm*color1:   red
> XTerm*color2:   green
> XTerm*color3:   yellow
> XTerm*color4:   blue
> XTerm*color5:   magenta
> XTerm*color6:   cyan
> XTerm*color7:   white
> XTerm*color8:   black
> XTerm*color9:   red
> XTerm*color10:  green
> XTerm*color11:  yellow
> XTerm*color12:  blue
> XTerm*color13:  magenta
> XTerm*color14:  cyan
> XTerm*color15:  white
> XTerm*termName: xterm
> XTerm*title:    XTerm
> XTerm*colorMode:        on
> XTerm*background:       blue
> XTerm*foreground:       white
> XTerm*loginShell:       true
> XTerm*dynamicColors:    on
> 
> 
> I confirm I have installed xfonts-terminus
> 
> $ apt policy xfonts-terminus
> xfonts-terminus:
>   Installiert:           4.48-3.1
>   Installationskandidat: 4.48-3.1
>   Versionstabelle:
>  *** 4.48-3.1 500
>         500 http://deb.debian.org/debian testing/main amd64 Packages
>         500 http://deb.debian.org/debian unstable/main amd64 Packages
>         500 http://ftp.debian.org/debian unstable/main amd64 Packages
>         100 /var/lib/dpkg/status
> 
> Kind regards
> 
>        Andreas.
> 
> -- 
> http://fam-tille.de

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to