From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#5664: 23.1.92; view-lossage Date: Sun, 07 Mar 2010 14:39:46 +0100 Organization: ThierryVolpiatto Message-ID: <87k4tockt9.fsf@tux.homenetwork> References: <871vfxl2u1.fsf@stupidchicken.com> <4B92B542.2050505@online.de> <87d3zh9paz.fsf@stupidchicken.com> <4B92BE90.5080104@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267970212 6489 80.91.229.12 (7 Mar 2010 13:56:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Mar 2010 13:56:52 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 07 14:56:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGyL-0000iB-G8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Mar 2010 14:56:46 +0100 Original-Received: from localhost ([127.0.0.1]:38992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoGyL-0007cZ-1I for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Mar 2010 08:56:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoGw2-00070V-V6 for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:54:23 -0500 Original-Received: from [140.186.70.92] (port=50439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoGw0-0006zd-As for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:54:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NoGvx-0000z2-4d for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:54:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38569) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGvx-0000yq-2Q for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:54:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NoGn0-0000bi-MF; Sun, 07 Mar 2010 08:45:02 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <4B8B784C.3080604@online.de> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Mar 2010 13:45:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5664 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12679694712307 (code B ref -1); Sun, 07 Mar 2010 13:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Mar 2010 13:44:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGmV-0000bA-33 for submit@debbugs.gnu.org; Sun, 07 Mar 2010 08:44:31 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGmS-0000b5-O7 for submit@debbugs.gnu.org; Sun, 07 Mar 2010 08:44:29 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:47099 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGmN-0003RV-Mc for submit@debbugs.gnu.org; Sun, 07 Mar 2010 08:44:23 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NoGmJ-0004hd-Le for submit@debbugs.gnu.org; Sun, 07 Mar 2010 08:44:23 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:44832) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NoGmJ-0004hZ-GP for submit@debbugs.gnu.org; Sun, 07 Mar 2010 08:44:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NoGmJ-0005FE-4n for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:44:19 -0500 Original-Received: from [140.186.70.92] (port=52176 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NoGmE-0005Cz-8O for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:44:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NoGmD-00007q-8i for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:44:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:40065) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NoGmC-00007h-V1 for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 08:44:13 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NoGmA-0005wg-L6 for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2010 14:44:10 +0100 Original-Received: from 68.77.197-77.rev.gaoland.net ([77.197.77.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Mar 2010 14:44:10 +0100 Original-Received: from thierry.volpiatto by 68.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Mar 2010 14:44:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-G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:b7AJ6IE10CjtjPMoCGOvl0li4Is= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 07 Mar 2010 08:45:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35468 Archived-At: Andreas Roehler writes: > Chong Yidong wrote: >> Andreas Roehler writes: >> >>> emacs -q >>> M-x shell >>> /bin/su at shell prompt >>> >>> prompt for PW arrives, when PW putted in, its visible at the screen >>> >>> root-shell (bash) arrives >>> >>> M-x report-emacs-bug >>> >>> View lossage displays root-password, replaced for this report by >>> MY-PW-SHOWN-HERE >> >> I'm afraid I can't reproduce this. One possibility is that you are >> using a locale where the password prompt is given in a language that >> comint-watch-for-password-prompt does not recognize. This is a known >> issue; customize comint-password-prompt-regexp to add the >> locale-dependent password prompt(s) to the list of recognized prompts. >> > > Thanks, that helps here. > However, think there is a bug though. If Emacs is able to display the prompt delivered, > it should adapt its behavior independently from the regexp already customized. As Chong said you must use a non--english/us locale. I have the same problem here, my prompt is not "Password" but "Mot de Passe", due to my french locale. All the prompts for password (e.g su/sudo) in the emacs shell use a cryptic regex. Setting it is a pain, i always have undesired side effects trying to set them. (shell and eshell). For shell (don't work in eshell): A workaround for "su" is creating an alias in bashrc: alias su="LC_ALL=C su -l" For sudo: alias sudo="sudo -p Password: " For eshell i didn't find good solution appart putting in my .emacs: (setenv "LC_ALL" "C") Work fine but may create other encoding problems in others places. The best thing should be that all emacs shell don't obey to locale setting for password prompt, i thing the word "password" in international well known. -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/