[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5664: 23.1.92; view-lossage
From: |
Thierry Volpiatto |
Subject: |
bug#5664: 23.1.92; view-lossage |
Date: |
Sun, 07 Mar 2010 14:39:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) |
Andreas Roehler <andreas.roehler@online.de> writes:
> Chong Yidong wrote:
>> Andreas Roehler <andreas.roehler@online.de> 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/
- bug#5664: 23.1.92; view-lossage, Andreas Roehler, 2010/03/01
- bug#5664: 23.1.92; view-lossage, Andreas Roehler, 2010/03/06
- bug#5664: 23.1.92; view-lossage, Chong Yidong, 2010/03/06
- bug#5664: 23.1.92; view-lossage, Andreas Roehler, 2010/03/06
- bug#5664: 23.1.92; view-lossage, Stefan Monnier, 2010/03/06
- bug#5664: 23.1.92; view-lossage, Andreas Roehler, 2010/03/06
- bug#5664: 23.1.92; view-lossage, Stefan Monnier, 2010/03/07
- bug#5664: 23.1.92; view-lossage, Andreas Röhler, 2010/03/07
- bug#5664: 23.1.92; view-lossage, Andreas Schwab, 2010/03/07