bugGNU GRUB - Bugs: bug #38242, grub-mklayout won't handle the...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #38242: grub-mklayout won't handle the keys to input a backslash character on Japanese keyboard layout

Submitted by:  Morita Sho <moritasho>
Submitted on:  Mon 04 Feb 2013 01:49:36 AM UTC  
 
Category: TerminalSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Mon 04 Feb 2013 01:49:36 AM UTC, original submission:

Hi,

I noticed that grub-mklayout rejects the keys to input a backslash on Japanese keyboard layout.
Executing grub-mklayout for Japanese keymap will outputs the following message:

The keys 0x7c(124) and 0x59(89) are necessary to input a backslash character on Japanese keyboard layout.

The output of ckbcomp for these keys are as follow:

Here is the information about these keys:

Linux keycode: 0x59(89), defined as KEY_RO in include/uapi/linux/input.h
AT Set 1 Scancode: 0x73
AT Set 2 Scancode: 0x51
USB Usage ID: 0x87, Keyboard International1

Linux keycode: 0x7C(124), defined as KEY_YEN in include/uapi/linux/input.h
AT Set 1 Scancode: 0x7D
AT Set 2 Scancode: 0x6A
USB Usage ID: 0x89, Keyboard International3

References:

I think some modifications to util/grub-mklayout.c, grub-core/term/at_keyboard.c and include/grub/keyboard_layouts.h is needed to add support for those keys. I made and attached a patch. But I'm afraid for that this patch might breaks backward compatibility as it changes the value of GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE...

Regards,

Morita Sho <moritasho>

 

Attached Files
file #27377:  patch added by moritasho (4kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by moritasho (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Apr 2013 08:27:06 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 04 Feb 2013 01:49:36 AM UTCmoritashoAttached File-=>Added patch, #27377

    Back to the top


    Powered by Savane 3.1-cleanup