bugXnee - Bugs: bug #8138, Slash character incorrect when...

 
 

bug #8138: Slash character incorrect when retyping a file

Submitter:  None
Submitted:  Sun 14 Mar 2004 01:35:50 AM UTC
   
 
Category:  libxnee Severity:  3 - Normal
Item Group:  Error report Status:  None
Privacy:  Public Assigned to:  hesa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 28 Mar 2004 10:10:59 PM UTC, comment #3: 

Sorry, one more question.... what is the output of the command "xmodmap -pke"?

Joseph Miele <jemiele1>
Sun 28 Mar 2004 10:00:43 PM UTC, comment #2: 

I have figured out a way to determine if the SHIFT key needs to be pressed to generate a character in such a way that it will work on Swedish and American and hopefully all sorts of other keyboards. I was going to add the code to this comment, but I see that there is another issue.

Apparently, you need to press yet another modifier key in order to type an "at" sign on your keyboard. This means I need to make my new code smart enough to determine when to press that new modifier.

Unfortunately, I don't have a Swedish keyboard with which to test the code. So, I need to ask some questions.

1. What keys do you need to press to get the "at" sign?
2. What is printed to your screen if you type the command "xmodmap -pm" from an xterm window?

Hopefully, I can use this information to design code smart enough to print "at" signs on both Swedish and American keyboards.

- Joe

Joseph Miele <jemiele1>
Sun 21 Mar 2004 08:39:40 PM UTC, comment #1: 

Thanks for your report....

The problem that we have here is that on a swedish keyboard (qwerty) you type a "/" by pressing
   Shift + 7
and on an American keyboard you type
   /

... I'll have to figure out how to handle this

Henrik Sandklef <hesa>
Group administrator
Sun 14 Mar 2004 01:35:50 AM UTC, original submission:  

Versions of xnee affected: 1.08 and CVS.

When retyping a file (using the --retype-file option), the slash character is retyped as a question mark. For example, if a file contains "cd /tmp", xnee will retype the contents of the file as "cd ?tmp".

This bug occurs because a flag is set to have xnee type the SHIFT key when typing a slash.

Here is the affected code segment from subroutine xnee_char2keycode in file xnee.c:

    case '/':
      kc->shift_press=1;
      kc->kc = xnee_str2keycode(xd,"slash");
      break;

This code segment should be changed to read as follows:

    case '/':
      kc->kc = xnee_str2keycode(xd,"slash");
      break;

I have tested this change and it solves the problem for me.

If you agree that my change is the correct solution to this problem, please implement this change by your next release.

Thank you for your time.



Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-27 hesa Open/ClosedOpen Closed
2004-03-21 hesa Assigned toNone hesa

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code