From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#24231: 25.1.1: sudo displays password Date: Mon, 15 Aug 2016 17:43:39 +0200 Message-ID: <9e9792f7-20fd-d37f-1d6c-e14e6a85544a@easy-emacs.de> References: <4d07ab3d-30d1-80c5-cd2c-21a2e026066b@easy-emacs.de> <87shu62tif.fsf@gmx.de> <87mvke2jt2.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1471275508 20961 195.159.176.226 (15 Aug 2016 15:38:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2016 15:38:28 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0 Cc: 24231@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 17:38:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZJy2-0005Cg-OS for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 17:38:22 +0200 Original-Received: from localhost ([::1]:37589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJxz-0006iO-Oh for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2016 11:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJxm-0006eT-QY for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 11:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZJxi-0005aM-JU for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 11:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZJxi-0005aI-Fk for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZJxi-0007L9-9Z for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2016 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2016 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24231 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24231-submit@debbugs.gnu.org id=B24231.147127546828196 (code B ref 24231); Mon, 15 Aug 2016 15:38:02 +0000 Original-Received: (at 24231) by debbugs.gnu.org; 15 Aug 2016 15:37:48 +0000 Original-Received: from localhost ([127.0.0.1]:58454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZJxT-0007Ki-T2 for submit@debbugs.gnu.org; Mon, 15 Aug 2016 11:37:48 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.75]:54452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZJxS-0007KU-I3 for 24231@debbugs.gnu.org; Mon, 15 Aug 2016 11:37:47 -0400 Original-Received: from [192.168.178.35] ([77.3.52.226]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MeBeI-1bqKiK3EcA-00PuVE; Mon, 15 Aug 2016 17:37:39 +0200 In-Reply-To: <87mvke2jt2.fsf@gmx.de> X-Provags-ID: V03:K0:1C3IJxZliattnwzdyDVCBxfKc+AmHQZPWqfX+IHDew/bihYQ/0Z ZB1YvWnuHAdB7Ke5rqzyYKNHqjrLIZHL6HxbrQiaMmx2BmftIYRiz2JTS2kQ9unZd53Wfae 8uX9b39XXHYk5Zv7ctOWhDZRmPSOUvF7INHwYJ+Vm10VDETficivPCb9mRYp3W+eiV17D/T D/toIHmp5IMydAeli+/zQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:MRL7+nrJt+0=:F6n9dg58Zp8GqH0HlHPQtq UTH01Sah4UMeVTuK1LEIfddG0HAsA2xTTE8K+zFcemY9wP69oWMh5eHWrWlg0CxClvn7ptAfA YNLFGzcgh7raY6fxO17EGOF69okNcJ7pkMfilA1HjBBCalUN/4lxsYhhma3UFKVtXkfQFpUGN U4iei6DKqQucd0Ezokhjwtf60PNVy7TGKvmLdUSdfhURyc/k/PDYqiFq4emSu/MsDeNQCxloh 0dtgni4hi2YvNbOoUrMHry7i4fLN/rmOwL3ZButACZE7kHc3VR3U5RcM9GXWX+xzcIntE9zsy q0q2WD3oLWG2rU5BS9B2sSjmTNHnJzwAD6CV/B5vhe4LEn1g/B5tsXxvktPojnQ3LfC/Ejn3e 6wjCJ/dyfjfxOTcQI6pLLGycZ8wsg+Exe0frpe3uExjeMYxOdDQuSjkI1l2fdJp09xLXgfClc RSStm6h2+zQm0S1tykus0INTcQ7SFX6oHCDtfBLj2eHbOHWjB/RWKp1SwsVrD5N9G7Cvlt2Mu OGhdXXHa0EUJLnybe0HjdKI5bqnoLF01pY1CWvMEjcyQKJIet05oUwZ9Iuda35ShrQWcgS7xs SREY6CJFScaOMjIFR558cHvxzznThEhDG9v35Aes7irpir4L+9se50SwDFleT3WBhs1pKeMI6 7XshvNjCsIpj3e9n9V2b+h+SxNGXVGpu/qSnzBioZcyiixZLKC2xoia6Va54uW0KrVF/uGBuK asyweJ0H9j/GBAzs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122242 Archived-At: On 15.08.2016 16:22, Michael Albinus wrote: > Andreas Röhler 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.