From 604d0dd551fa7d275cdf69911c9df4595a42f49f Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Tue, 18 Feb 2020 01:50:44 +0000 Subject: [PATCH] Use 0x5c for the scan code 0x7d. Japanese keyboards traditionally use 0x5c for both Japanese yen sign key and backslash key. While a Japanese yen sign is depicted on the keytop, most of Japanese expect that the scan code 0x7d gives a backslash (0x5c), not a Japanese yen sign (0xa5). This is because JIS X 0201 encoding (aka ISO/IEC 646-JA, an extended version of ASCII which is very popular in Japan) has Japanese yen sign at 0x5c and no backslash. On the other hand, ISO/IEC 8859-1 has Japanese yen sign at 0xa5. This difference has caused a confusion after Unicode became popular since ISO/IEC 10646 adopted 8859-1 for the plane 0. MFC after: 1 week --- share/vt/keymaps/jp.capsctrl.kbd | 2 +- share/vt/keymaps/jp.kbd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/vt/keymaps/jp.capsctrl.kbd b/share/vt/keymaps/jp.capsctrl.kbd index 294d531e6977..26d7409dfe31 100644 --- a/share/vt/keymaps/jp.capsctrl.kbd +++ b/share/vt/keymaps/jp.capsctrl.kbd @@ -117,4 +117,4 @@ 115 '\' '_' fs us '\' '_' fs us O 121 ' ' ' ' nul ' ' ' ' ' ' susp ' ' O 123 ' ' ' ' nul ' ' ' ' ' ' susp ' ' O - 125 0xa5 '|' fs us 0xa5 '|' fs us O + 125 '\' '|' fs us 0xa5 '|' fs us O diff --git a/share/vt/keymaps/jp.kbd b/share/vt/keymaps/jp.kbd index 1fbff5d31e55..9f6b16fd13cd 100644 --- a/share/vt/keymaps/jp.kbd +++ b/share/vt/keymaps/jp.kbd @@ -115,4 +115,4 @@ 115 '\' '_' fs us '\' '_' fs us O 121 ' ' ' ' nul ' ' ' ' ' ' susp ' ' O 123 ' ' ' ' nul ' ' ' ' ' ' susp ' ' O - 125 0xa5 '|' fs us 0xa5 '|' fs us O + 125 '\' '|' fs us 0xa5 '|' fs us O