GNU bug report logs - #25596
comint-password-prompt-regexp and non-English locales

Previous Next

Package: emacs;

Reported by: Rahul Martim Juliato <rahuljuliato <at> gmail.com>

Date: Wed, 1 Feb 2017 01:50:01 UTC

Severity: minor

Tags: confirmed

Merged with 26698, 29028, 30838

Found in versions 24.5, 25.1, 25.3

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Rahul Martim Juliato <rahuljuliato <at> gmail.com>
Cc: 25596 <at> debbugs.gnu.org
Subject: bug#25596: 25.1; Password not hidden
Date: Thu, 23 Feb 2017 17:00:51 -0500
Rahul Martim Juliato wrote:

> emacs -Q -f shell
>
> inside of it:
> sudo ls
>
> And then shell asks me for the password not hiding it when I type.

Thanks. I see that in your initial report, you said the prompt was:

  [sudo] senha para eng:

> I already tried a "solution" i found on-line by adding this to my .emacs file:
>
> (add-hook 'comint-output-filter-functions
> 	  'comint-watch-for-password-prompt)

This is already done by default.

> And altough I'm using a brazillian portuguese system, sudo should
> recognize the portuguese word "senha" as a passwork equivalent, or at
> least recognize that the line asks for password with "[sudo]".

Emacs has the variable password-word-equivalents, which includes "senha"
by default.

The problem is that comint-password-prompt-regexp does not translate
"for" into other languages ("para" in this case).





This bug report was last modified 7 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.