bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #38242] grub-mklayout won't handle the keys to input a backslash ch


From: Morita Sho
Subject: [bug #38242] grub-mklayout won't handle the keys to input a backslash character on Japanese keyboard layout
Date: Mon, 04 Feb 2013 01:49:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0

URL:
  <http://savannah.gnu.org/bugs/?38242>

                 Summary: grub-mklayout won't handle the keys to input a
backslash character on Japanese keyboard layout
                 Project: GNU GRUB
            Submitted by: moritasho
            Submitted on: 2013年02月04日 10時49分36秒
                Category: Terminal
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Bazaar - trunk
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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:


  % ckbcomp jp | grub-mklayout -o /dev/null
  Unknown keycode 0x54
  Unknown keycode 0x65
  Unknown keycode 0x7f
  Unknown keycode 0x7c   <==
  Unknown keycode 0x79
  Unknown keycode 0x59   <==


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:


  % ckbcomp jp | grep '124\|89'
  keycode 124 = U+005c U+007c U+005c U+007c ...
  keycode 89 = U+005c U+005f U+005c U+005f ...



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: 
* Key Layout and Scancodes
<http://hp.vector.co.jp/authors/VA003720/lpproj/others/kbdjpn.htm>
* Universal Serial Bus HID Usage Tables: 10 Keyboard/Keypad Page
<http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf>


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,




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: 2013年02月04日 10時49分36秒  Name: patch  Size: 4kB   By:
moritasho

<http://savannah.gnu.org/bugs/download.php?file_id=27377>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38242>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]