From: Michael Albinus <michael.albinus@gmx.de>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 24231@debbugs.gnu.org
Subject: bug#24231: 25.1.1: sudo displays password
Date: Mon, 15 Aug 2016 16:22:49 +0200 [thread overview]
Message-ID: <87mvke2jt2.fsf@gmx.de> (raw)
In-Reply-To: <afc6e58a-d33c-b134-39ea-5f0fdeeada5b@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Mon, 15 Aug 2016 14:20:57 +0200")
Andreas Röhler <andreas.roehler@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.
next prev parent reply other threads:[~2016-08-15 14:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-15 9:27 bug#24231: 25.1.1: sudo displays password Andreas Röhler
2016-08-15 10:53 ` Michael Albinus
2016-08-15 12:20 ` Andreas Röhler
2016-08-15 14:22 ` Michael Albinus [this message]
2016-08-15 15:43 ` Andreas Röhler
2016-08-15 15:52 ` Michael Albinus
2016-08-17 7:42 ` Michael Albinus
2016-08-17 8:48 ` Andreas Röhler
2016-08-17 9:18 ` Michael Albinus
2016-08-17 10:07 ` Andreas Röhler
2016-08-17 10:08 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvke2jt2.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=24231@debbugs.gnu.org \
--cc=andreas.roehler@easy-emacs.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).