git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[bug] gitk doesn't start if font name contains spaces

From
IBIngo Blechschmidt <iblech@speicherleck.de>
Date
Oct 22, 2020, 19:50 UTC
Message-ID
<20201022195033.GA29199@quasicoherent>
Dear git developer community,

the following bug in gitk has surfaced in the NixOS bugtracker (https://github.com/NixOS/nixpkgs/issues/86003):

gitk fails to start if the X resource "font" contains spaces. The command

    $ echo "*font: xft:Bitstream Vera Sans Mono" | xrdb -merge
    $ gitk

reproduces this bug. The gitk window does not open, instead the following error message is printed on the console:

    Error in startup script: expected integer but got "Vera"
	(database entry for "-font" in widget ".___tk_set_palette.button")
	invoked from within
    "$q .___tk_set_palette.$q"
	(procedure "tk_setPalette" line 82)
	invoked from within
    "tk_setPalette background $c selectColor $selc"
	(procedure "setui" line 8)
	invoked from within
    "setui $uicolor"
	(file "./gitk" line 12498)

I'm not subscribed to the mailing list but am happy to help on this issue. Thank you for your continued work in maintaining gitk, very much appreciated!

Cheers, Ingo

Message 1 of 1 in “[bug] gitk doesn't start if font name contains spaces”
  1. Ingo BlechschmidtOct 22, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.