From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5664: 23.1.92; view-lossage
Date: Sun, 07 Mar 2010 16:52:24 +0100 [thread overview]
Message-ID: <87fx4cyvrb.fsf@tux.homenetwork> (raw)
In-Reply-To: <4B8B784C.3080604@online.de>
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Thierry Volpiatto wrote:
>> 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.
>>
>
> Hi, thanks,
>
> as long it's not solved at the source of the matter, I'd prefere the last.
> Better just one prompt than undergoing security-risks.
Agree.
Also, since eshell su/sudo have changed recently i am unable to use an
eshell alias for sudo (with -p option).
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
next prev parent reply other threads:[~2010-03-07 15:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <871vfxl2u1.fsf@stupidchicken.com>
2010-03-06 20:04 ` bug#5664: 23.1.92; view-lossage Andreas Roehler
2010-03-06 20:18 ` Chong Yidong
2010-03-06 20:44 ` Andreas Roehler
2010-03-01 8:18 ` Andreas Roehler
2010-03-07 13:39 ` Thierry Volpiatto
2010-03-07 15:22 ` Andreas Röhler
2011-06-30 23:00 ` Lars Magne Ingebrigtsen
2011-07-01 4:56 ` Thierry Volpiatto
2010-03-07 15:52 ` Thierry Volpiatto [this message]
2010-03-06 21:33 ` Stefan Monnier
2010-03-06 21:50 ` Andreas Roehler
2010-03-07 14:40 ` Stefan Monnier
2010-03-07 15:18 ` Andreas Röhler
2010-03-07 15:45 ` Andreas Schwab
2014-01-19 13:31 ` 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=87fx4cyvrb.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=bug-gnu-emacs@gnu.org \
/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).