From 161139a42c02cce051c51fb80c6ae00c9e6beaa6 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 25 Jun 2018 19:11:41 -0400 Subject: Detect Chinese sudo password prompts (Bug#31075) * lisp/comint.el (comint-password-prompt-regexp): Allow text between the prompt prefix and password equivalent. * lisp/eshell/esh-mode.el (eshell-password-prompt-regexp): Accept some unicode alternatives to ":". * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add test case. --- test/lisp/comint-tests.el | 1 + 1 file changed, 1 insertion(+) (limited to 'test/lisp/comint-tests.el') diff --git a/test/lisp/comint-tests.el b/test/lisp/comint-tests.el index 366fcc9ad89..eab2709cea9 100644 --- a/test/lisp/comint-tests.el +++ b/test/lisp/comint-tests.el @@ -36,6 +36,7 @@ "Enter same passphrase again: " ; ssh-keygen "Passphrase for key root@GNU.ORG: " ; plink "[sudo] password for user:" ; Ubuntu sudo + "[sudo] user 的密码:" ; localized "Password (again):" "Enter password:" "Mot de Passe :" ; localized (Bug#29729) -- cgit v1.2.3