jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

some keyboard bindings in tk do not work #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
in a tk program, try key up/down in a listbox, or \n or space on a button.

What is the expected output? What do you see instead?
the selection should move in the listbox, the button should call its command.
but that does not happen.

Which operating system are you using?
latest inferno-os on openbsd.  the same probably happens on linux.  probably 
not in plan 9.  atoi() is used for parsing a string of the form "0x%K".  
atoi(arg) is strtol(arg, nil, 10) on bsd & linux.  on plan 9 it is more like 
strtol(arg, nil, 0), handling hexadecimal and octal.

Please provide any additional information below.
the attached patch replaces the atoi calls for parsing 0x%K to strtol calls.

Original issue reported on code.google.com by mechiel@ueber.net on 29 Mar 2011 at 11:27

Attachments:

GoogleCodeExporter commented 9 years ago
committed changeset 501:b59857b3a4a9

Original comment by Charles....@gmail.com on 30 Mar 2011 at 8:26