bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24231: 25.1.1: sudo displays password


From: Andreas Röhler
Subject: bug#24231: 25.1.1: sudo displays password
Date: Mon, 15 Aug 2016 17:43:39 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0



On 15.08.2016 16:22, Michael Albinus wrote:
Andreas Röhler <address@hidden> writes:

Hi Andreas,

Screenshot and complete output of M-x report-emacs-bug RET sent off-list.
Arrived :-)

Your problem is your German locale. The screenshot shows the following
password prompt:

[sudo] Passwort für user: xyz-and-blah

And you have the locale setting LANGUAGE=de_DE. The word "Passwort" is
not a problem, it is part of password-word-equivalents. But the German
word "für" does not match comint-password-prompt-regexp, you'll see (at
the end of this regexp) that it only accepts the non-localized "for".

You can test yourself in the shell buffer, for example with one of

detlef:~> env LANGUAGE=en_US sudo -i

detlef:~> env SUDO_PROMPT="password: " sudo -i

detlef:~> sudo -p "password: " -i

All shall work as expected. Maybe one could try to add the localized
version of "for" in comint-password-prompt-regexp, but I have no idea
how to extract this from the system wide password prompt without trying
sudo.

Best regards, Michael.

Thanks!

Should it not be possible to suppress the plain echo in all cases following "sudo"?
As the QT-shell does IIUC.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]