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

Bug: gitk crashes for single file with German environment

From
JBJörg Bühmann <joerg@evenly.io>
Date
Oct 23, 2015, 13:32 UTC
Message-ID
<F43EBADE-ABBF-4CB7-A7C6-BDAA9791F7C1@evenly.io>
gitk crashes for single file with German environment
Git 2.6.2                         
Installed with homebrew
Platform Apple OS X 10.10.5
shell: zsh 5.0.5 (x86_64-apple-darwin14.0)
environment: LANG=de_DE.UTF-8
 
gitk is very useful to show the commit history of one file. However it crashes on me.
gitk myfile
produces the following error:
Error in startup script: bad menu entry index "Ansicht bearbeiten ..."
    while executing
".bar.view entryconf [mca "Edit view..."] -state normal"
    invoked from within
"if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne {}} {
    # create a view for the files/dirs specified on the command line
    se..."
    (file "/usr/local/bin/gitk" line 12442)
It seems the problem has to do with the start script trying to get the localized menu item of "Edit view..." in German "Ansicht bearbeiten ..." and that fails.

When I change the language in my environment export LANG=en_US.UTF-8 everything works as expected.

If I start gitk without any arguments and German environment (LANG=de_DE.UTF-8), it starts up fine. However the German localization is missing from the menubar, it's completely in English. Buttons and labels inside the window are localized into German properly. See screenshot http://i.imgur.com/VZZljPb.png It's apparent then, that the script does not get a menu entry that corresponds to the localized string.

Thank you
Jörg Bühmann
Next: Konstantin Khomoutov
Message 1 of 2 in “Bug: gitk crashes for single file with German environment”
  1. Jörg BühmannOct 23, 2015
  2. Konstantin KhomoutovOct 23, 2015

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.