[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp fails for su when not having English prompt
From: |
Michael Albinus |
Subject: |
Re: tramp fails for su when not having English prompt |
Date: |
Tue, 30 Oct 2007 16:30:55 +0100 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
Christian Faulhammer <address@hidden> writes:
> Hi,
Hi,
> A user reported a problem with tramp and su after an upgrade of
> Linux-PAM and libpwd in
> <URL:http://bugs.gentoo.org/show_bug.cgi?id=197444>. We boiled it down
> to a problem with the prompt of su not being in English. The regexp in
> tramp-password-prompt-regexp only catches English output, so calling
> su with LC_ALL=C works perfectly fine.
`tramp-password-prompt-regexp' is a user option intended for
customization. Localized prompts could be defined here.
However, the appended patch might solve the problem as well. Could
you, please, (let) test?
> V-Li
Best regards, Michael.
*** /media/disk/tramp/lisp/tramp.el Mon Oct 29 09:49:18 2007
--- /home/albinus/src/tramp/lisp/tramp.el Tue Oct 30 16:20:04 2007
***************
*** 6066,6071 ****
--- 6066,6072 ----
(when (and p (processp p))
(delete-process p))
(setenv "TERM" tramp-terminal-type)
+ (setenv "LC_ALL" "C")
(setenv "PROMPT_COMMAND")
(setenv "PS1" "$ ")
(let* ((target-alist (tramp-compute-multi-hops vec))