GNU bug report logs - #24231
25.1.1: sudo displays password

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 15 Aug 2016 09:22:02 UTC

Severity: normal

Tags: notabug

Found in version 25.1.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 24231 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24231 <at> debbugs.gnu.org
Subject: Re: bug#24231: 25.1.1: sudo displays password
Date: Mon, 15 Aug 2016 16:22:49 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> 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.




This bug report was last modified 8 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.