dave@romano.cs.wisc.edu (Dave Cohrs) (04/16/88)
Description:
The print routine, PrintModifierMapping, that is invoked when
xmodmap is run without arguments incorrectly references the
table name. The code left off the reference to the specific
member of the modifer_table structure.
Repeat By:
( note that this may not appear to be a bug on some
systems, depending on your machine architecture;
it does appear on a Sun4).
Log into a Sun4 running X11.
% xmodmap
Notice that the first column, which should contain the
names of the modifier name, is blank.
Fix:
*** exec.c.old Thu Feb 25 23:04:24 1988
--- exec.c Fri Apr 15 14:25:48 1988
***************
*** 153,159 ****
for (i = 0; i < 8; i++) {
int j;
! fprintf(fp, "%-10s", modifier_table[i]);
for (j = 0; j < map->max_keypermod; j++) {
if (map->modifiermap[k]) {
KeySym ks = XKeycodeToKeysym(dpy, map->modifiermap[k], 0);
--- 153,159 ----
for (i = 0; i < 8; i++) {
int j;
! fprintf(fp, "%-10s", modifier_table[i].name);
for (j = 0; j < map->max_keypermod; j++) {
if (map->modifiermap[k]) {
KeySym ks = XKeycodeToKeysym(dpy, map->modifiermap[k], 0);
Dave Cohrs
+1 608 262-6617 UW-Madison Computer Sciences Department
dave@cs.wisc.edu ...!{harvard,ihnp4,rutgers,ucbvax}!uwvax!dave