Delete Key Bug: Inputs U+007F and U+0621 in pt_BR Locale

When pressing the Delete key once prints the actual delete as an Unicode character (“”, U+007F), pressing Delete on more time the Arabic Letter Hamza (“ء”, U+0621).

To my knowledge, this only happens in the following conditions: pt_BR locale, libx11 version 1.8.10, GNOME, and GTK4 applications. This was reproduced by different users in Arch Linux, Fedora and openSUSE Tumbleweed.

libx11 downgraded to 1.8.9 on GNOME cease this bug. GTK3 apps with libx11 1.8.10 doesn’t have this. Hyprland (as was reported to me) didn’t reproduced with all other conditions.

Here are the tests I did locally in my Arch Linux:
I tried the following:

  1. Downgrade libx11: https://archive.archlinux.org/packages/ … kg.tar.zst
  2. Create a new user (e.g. sudo useradd -m -g 1000 testuser)
  3. Switch to the new user, open Console (or other GTK4 app) and it will works fine!
  4. Go back and update libx11 back to version 1.8.10
  5. Switch to the new user, nothing changed (still works)
  6. Go back remove the user, clean its home folder
  7. Redo steps 2 and 3, but now the Delete key bug happens

There is discussion going on in:

Any help is appreciated.

2 Likes

Same issue here. :frowning:
pt_BR locale
Gnome 46
Fedora 40

This merge request fixes the issue: https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/265