#1036561 emacs-gtk: opening an encrypted GnuPG file in an xterm via SSH can put garbage in the buffer

Package:
emacs-gtk
Source:
emacs-gtk
Description:
GNU Emacs editor (with GTK+ GUI support)
Submitter:
Vincent Lefevre
Date:
2023-05-22 16:27:07 UTC
Severity:
normal
#1036561#5
Date:
2023-05-22 16:23:35 UTC
From:
To:
I opened an encrypted GnuPG file (.gpg extension) in an xterm via SSH
(no X11 forwarding). After typing my passphrase in the terminal, the
file was opened successfully, but the character "e" was inserted at
the beginning of the buffer, and the PageUp/PageDown keys were not
recognized.

I suspect some bug in the terminal initialization code for xterm.

This occurred in the past with slow connections, but at least with
normal files:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016043

(perhaps this in unrelated to GnuPG and this is exactly the same bug).