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

 
 

bug #8138: Slash character incorrect when retyping a file

Submitted by:  None
Submitted on:  Sun 14 Mar 2004 01:35:50 AM UTC  
 
Category: libxneeSeverity: 3 - Normal
Item Group: Error reportStatus: None
Privacy: PublicAssigned to: Henrik Sandklef <hesa>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 27 Mar 2005 09:18:04 PM UTChesaOpen/ClosedOpen=>Closed
Sun 21 Mar 2004 08:39:40 PM UTChesaAssigned toNone=>hesa

Back to the top


Powered by Savane 3.1-cleanup1