git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] gitk --all and git bisect visualize crash in non-english locale
@ 2015-11-18 18:31 Matthieu Moy
  2015-11-18 21:53 ` Dennis Kaarsemaker
  0 siblings, 1 reply; 3+ messages in thread
From: Matthieu Moy @ 2015-11-18 18:31 UTC (permalink / raw)
  To: git, Giuseppe Bilotta, Paul Mackerras

Hi,

I'm getting the following crash on recent gitk:

  $ LANG=fr_FR gitk --all
  Error in startup script: bad menu entry index "Éditer la vue..."
      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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)

It's linked to the locale:

  $ LANG=C gitk --all
  # Just works

but does not seem to be related to French in particular nor to the
accent:

  $ LANG=es_ES gitk --all
  Error in startup script: bad menu entry index "Modificar vista..."
      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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)

It also works fine without --all.

It bisects down to:

commit d99b4b0de27a2bd654a40353b65883e368da6d06
Author: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date:   Wed Sep 9 15:20:53 2015 +0200

    gitk: Accelerators for the main menu
    
    This allows fast, keyboard-only usage of the menu (e.g. Alt+V, N to open a
    new view).
    
    Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
    Signed-off-by: Paul Mackerras <paulus@samba.org>

I'm not fluent enough in Tcl to fix this myself, sorry ;-).

Thanks,

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] gitk --all and git bisect visualize crash in non-english locale
  2015-11-18 18:31 [BUG] gitk --all and git bisect visualize crash in non-english locale Matthieu Moy
@ 2015-11-18 21:53 ` Dennis Kaarsemaker
  2015-11-20 14:49   ` Matthieu Moy
  0 siblings, 1 reply; 3+ messages in thread
From: Dennis Kaarsemaker @ 2015-11-18 21:53 UTC (permalink / raw)
  To: Matthieu Moy, git, Giuseppe Bilotta, Paul Mackerras

Hi Matthieu,

This has been reported quite a few times before. A fix is in master,
see 482456a^2 and children.

On wo, 2015-11-18 at 19:31 +0100, Matthieu Moy wrote:
> Hi,
> 
> I'm getting the following crash on recent gitk:
> 
>   $ LANG=fr_FR gitk --all
>   Error in startup script: bad menu entry index "Éditer la vue..."
>       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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)
> 
> It's linked to the locale:
> 
>   $ LANG=C gitk --all
>   # Just works
> 
> but does not seem to be related to French in particular nor to the
> accent:
> 
>   $ LANG=es_ES gitk --all
>   Error in startup script: bad menu entry index "Modificar vista..."
>       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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)
> 
> It also works fine without --all.
> 
> It bisects down to:
> 
> commit d99b4b0de27a2bd654a40353b65883e368da6d06
> Author: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
> Date:   Wed Sep 9 15:20:53 2015 +0200
> 
>     gitk: Accelerators for the main menu
>     
>     This allows fast, keyboard-only usage of the menu (e.g. Alt+V, N
> to open a
>     new view).
>     
>     Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
>     Signed-off-by: Paul Mackerras <paulus@samba.org>
> 
> I'm not fluent enough in Tcl to fix this myself, sorry ;-).
> 
> Thanks,
> 

-- 
Dennis Kaarsemaker
www.kaarsemaker.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] gitk --all and git bisect visualize crash in non-english locale
  2015-11-18 21:53 ` Dennis Kaarsemaker
@ 2015-11-20 14:49   ` Matthieu Moy
  0 siblings, 0 replies; 3+ messages in thread
From: Matthieu Moy @ 2015-11-20 14:49 UTC (permalink / raw)
  To: Dennis Kaarsemaker; +Cc: git, Giuseppe Bilotta, Paul Mackerras

Indeed. I should obviously have started by updating my master branch,
sorry for the noise.

Thanks,

Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:

> Hi Matthieu,
>
> This has been reported quite a few times before. A fix is in master,
> see 482456a^2 and children.
>
> On wo, 2015-11-18 at 19:31 +0100, Matthieu Moy wrote:
>> Hi,
>> 
>> I'm getting the following crash on recent gitk:
>> 
>>   $ LANG=fr_FR gitk --all
>>   Error in startup script: bad menu entry index "Éditer la vue..."
>>       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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)
>> 
>> It's linked to the locale:
>> 
>>   $ LANG=C gitk --all
>>   # Just works
>> 
>> but does not seem to be related to French in particular nor to the
>> accent:
>> 
>>   $ LANG=es_ES gitk --all
>>   Error in startup script: bad menu entry index "Modificar vista..."
>>       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 "/home/moy/local/usr-jessie/bin/gitk" line 12442)
>> 
>> It also works fine without --all.
>> 
>> It bisects down to:
>> 
>> commit d99b4b0de27a2bd654a40353b65883e368da6d06
>> Author: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
>> Date:   Wed Sep 9 15:20:53 2015 +0200
>> 
>>     gitk: Accelerators for the main menu
>>     
>>     This allows fast, keyboard-only usage of the menu (e.g. Alt+V, N
>> to open a
>>     new view).
>>     
>>     Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
>>     Signed-off-by: Paul Mackerras <paulus@samba.org>
>> 
>> I'm not fluent enough in Tcl to fix this myself, sorry ;-).
>> 
>> Thanks,
>> 

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-20 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 18:31 [BUG] gitk --all and git bisect visualize crash in non-english locale Matthieu Moy
2015-11-18 21:53 ` Dennis Kaarsemaker
2015-11-20 14:49   ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).