jart / cosmopolitan

build-once run-anywhere c library
ISC License
17.71k stars 605 forks source link

AltGr keys on French Keyboard Windows #994

Open jgranduel opened 9 months ago

jgranduel commented 9 months ago

Hi,

In Bash (renamed bash.exe), French AZERTY Keyboard, with altGr, I cannot write french diacritic characters (àéçèùà eg), nor pipes usable with"AltGr+-". I have no clue about the origin of the issue and it might be due to a wrong keymap configuration.

best regards

jart commented 9 months ago

Cosmopolitan just uses what the WIN32 gives us. It sounds like there's something special we need to be doing when reading the NtInputRecord data structures in order to support French keyboards. I'm happy to merge a change if someone in France can help fix: https://github.com/jart/cosmopolitan/blob/master/libc/calls/read-nt.c