microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.06k stars 302 forks source link

Using Google Japanese Input, keyboard is recognized not JP but US in GUI app. #1111

Open yonta opened 11 months ago

yonta commented 11 months ago

Windows Version

Microsoft Windows [Version 10.0.22631.2271]

WSL Version

1.3.17.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.4-1

Distro Version

Ubuntu 22.04.02 LTS

Other Software

WSL other version info.

PS C:> wsl.exe --version
WSL バージョン: 1.3.17.0
カーネル バージョン: 5.15.90.4-1
WSLg バージョン: 1.0.57
MSRDC バージョン: 1.2.4485
Direct3D バージョン: 1.608.2-61064218
DXCore バージョン: 10.0.25880.1000-230602-1350.main
Windows バージョン: 10.0.22631.2271

My Ubuntu keyboard configurations.

$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="jp"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

I tested input method in GNU Emacs 29.1 and lxterminal.

Repro Steps

  1. select Google Japanese Input Method by Win+Space
  2. press ; key, input ; (check keyboad is vlaid)
  3. press Shift+; key
    • it is : in US layout, + in JP layout

Expected Behavior

input +

Actual Behavior

input :

Diagnostic Logs

With Microsoft IME, it is input + correctly.

hideyukn88 commented 11 months ago

@yonta, thanks for reporting the issue, this is most likely that Google Japanese IME has own profile GUID different from Microsoft Japanese IME (GUID_GUID_PROFILE_MSIME_JPN). Would you please share /mnt/wslg/weston.log after you have switched to Google Japanese IME back and forth several times, thanks!

yonta commented 11 months ago

Thanks to reply.

I'm attaching the logs. In this log, I have switched Input Method, Google Japanese Input -> MS IME -> Google Japanese Input.

weston.log