unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arne Babenhauserheide <arne_bab@web.de>
To: Glenn Morris <rgm@gnu.org>
Cc: 13124@debbugs.gnu.org
Subject: bug#13124: 24.1; shell-mode does not hide sudo password prompts
Date: Tue, 11 Dec 2012 01:12:35 +0100	[thread overview]
Message-ID: <2651799.fvDoQSk02G@fluss> (raw)
In-Reply-To: <ttmwxl9704.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2690 bytes --]

Am Montag, 10. Dezember 2012, 12:00:59 schrieb Glenn Morris:
> Arne Babenhauserheide wrote:
> > Mine looks like this:
> > 
> > arne@fluss /mnt/eis/backups $ sudo test
> > Passwort: test
> 
> I'm afraid Emacs does not not understand the word "password" in every
> language out-of-the-box, so you'll have to add an entry to
> comint-password-prompt-regexp that matches "Passwort". Eg

Ah, ok.

Would it be possible to add the values for all languages, depending on the 
LC_ALL or LANG-environment variable?

The sudo source should already provide that… 
…
It uses either the prompt from its own po-files¹, or if that is not defined 
the default PAM prompt².

¹: http://www.sudo.ws/repos/sudo/file/89153025a2ae/plugins/sudoers/po
²: https://fedorahosted.org/linux-pam/browser/po

In short:

PAM-delivered: 

pt_BR "Senha:"
zu "Iphasiwedi: "
km "ពាក្យសម្ងាត់ ៖ "
ar "كلمة السر: "
da "Adgangskode: "
he "ססמה: "
ms ""
nl "Wachtwoord: "
hu "Jelszó: "
gu "પાસવર્ડ: "
fr "Mot de passe : "
bn_IN "পাসওয়ার্ড: "
ko "암호:"
or "ପ୍ରବେଶ ସଙ୍କେତ: "
es "Contraseña: "
ml "അടയാളവാക്ക്: "
sv "Lösenord: "
ja "パスワード:"
kn "ಗುಪ್ತಪದ: "
de "Passwort: "
kk "Пароль:"
tr "Parola: "
pl "Hasło: "
sr@latin "Lozinka: "
te "సంకేతపదము: "
sk "Heslo: "
ta "கடவுச்சொல்:"
uk "Пароль: "
zh_TW "密碼:"
vi "Mật khẩu : "
ru "Пароль: "
mr "गुप्तशब्द: "
pa "ਪਾਸਵਰਡ: "
pt "Senha: "
cs "Heslo: "
hi "शब्दकूट: "
sr "Лозинка: "
si "රහස්පදය: "
fi "Salasana: "
ca "Contrasenya: "
as "গুপ্তশব্দ:"
nb "Passord: "
zh_CN "密码:"

from sudo itself:

da "Adgangskode: "
da "Adgangskode:"
eu "Pasahitza: "
eu "Pasahitza:"
sv "Lösenord: "
sv "Lösenord:"
ja "パスワード: "
ja "パスワード:"
pl "Hasło: "
pl "Hasło:"
eo "Pasvorto: "
eo "Pasvorto:"
uk "Пароль: "
uk "Пароль:"
vi "Mật khẩu: "
vi "Mật khẩu:"
lt "Slaptažodis: "
lt "Slaptažodis:"
hr "Lozinka: "
hr "Lozinka:"
sl "Geslo: "
sl "Geslo:"
fi "Salasana: "
fi "Salasana:"
zh_CN "密码:"
zh_CN "密码:"


(in the source dir containing the po-dir, do `grep "Password:" . -R -A1 | sed 
s/.*Password.*// | grep po-msgst | sed "s/\.\/po\///" | sed "s/\.po-
msgstr//"`)

These are the ones which should be accepted, depending on the locale.

(I provided the command because I do not know if the unicode will survive)

Could you include these?

Best wishes,
Arne
--
singing a part of the history of free software: 

- http://infinite-hands.draketo.de


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

  reply	other threads:[~2012-12-11  0:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-08 13:27 bug#13124: 24.1; shell-mode does not hide sudo password prompts Arne Babenhauserheide
2012-12-08 19:24 ` Glenn Morris
2012-12-10 16:21   ` Arne Babenhauserheide
2012-12-10 17:00     ` Glenn Morris
2012-12-11  0:12       ` Arne Babenhauserheide [this message]
2012-12-11  4:55         ` Glenn Morris
2012-12-11 13:42           ` Arne Babenhauserheide
2012-12-13 14:14             ` Kenichi Handa
2012-12-13 16:14               ` Arne Babenhauserheide
2012-12-18 19:54         ` Stefan Monnier
2012-12-21  5:47           ` Chong Yidong
2012-12-21 14:03             ` Stefan Monnier
2012-12-21 14:05               ` Chong Yidong
2012-12-21 14:19                 ` Michael Albinus
2012-12-29  7:38                   ` Chong Yidong
2012-12-29  8:39                     ` Andreas Schwab
2012-12-29 10:22                     ` Vitalie Spinu
2012-12-29 16:40                       ` Michael Albinus
2014-01-16 14:50                     ` Arne Babenhauserheide
2014-01-17  8:38                       ` Michael Albinus
2014-01-17 14:11                         ` Stefan Monnier
2014-01-17 14:15                           ` Michael Albinus
2014-01-17 15:07                             ` Stefan Monnier
2014-01-17 15:44                               ` Michael Albinus
2014-01-17 18: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=2651799.fvDoQSk02G@fluss \
    --to=arne_bab@web.de \
    --cc=13124@debbugs.gnu.org \
    --cc=rgm@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).