Subject: Re: bug#25596: 25.1; Password not hidden
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Fri, 28 Apr 2017 16:19:53 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 26.1

commit 6a3f331
Date:   Fri Apr 28 16:17:27 2017 -0400

    Broaden comint-password-prompt-regexp
    
    * lisp/comint.el (comint-password-prompt-regexp):
    Broaden the regexp, for non-English locales.  (Bug#26698)

diff --git a/lisp/comint.el b/lisp/comint.el
index a01ecd3..51b6591 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -362,7 +362,8 @@ This variable is buffer-local."
    " +\\)"
    "\\(?:" (regexp-opt password-word-equivalents) "\\|Response\\)"
    "\\(?:\\(?:, try\\)? *again\\| (empty for no passphrase)\\| (again)\\)?"
-   "\\(?: for .+\\)?[:：៖]\\s *\\'")
+   ;; "[[:alpha:]]" used to be "for", which fails to match non-English.
+   "\\(?: [[:alpha:]]+ .+\\)?[:：៖]\\s *\\'")
   "Regexp matching prompts for passwords in the inferior process.
 This is used by `comint-watch-for-password-prompt'."
   :version "26.1"