1 Jan 2010 16:49
Re: Remote filenames with non-ASCII chars and LC_ALL=C
Michael Albinus <michael.albinus <at> gmx.de>
2010-01-01 15:49:24 GMT
2010-01-01 15:49:24 GMT
Øyvind Stegard <oyvinst <at> ifi.uio.no> writes: > Hello TRAMP developers, Hi, > I believe the default setting of "LC_ALL=C" in the > `tramp-remote-process-environment' variable is causing problems for > remote filenames with non-ASCII characters in them: Remote shell > commands (at least 'ls') will simply replace all such chars with > question marks when run under C locale with output to a terminal. I work > primarily on hosts with UTF-8 as default locale encoding, but > occasionally I have to edit remote files on systems which default to > ISO-8859-1. The "LC_ALL=C" setting seems to break all non-ASCII setups, > even when both local and remote system are using the same encoding (for > instance local UTF-8 <--> remote UTF-8). > > IIRC, tramp worked properly with non-ASCII filenames in Emacs 22 by > default, if both systems used the same locale encoding. This is not true > for Emacs 23, that's why I'm reporting it here. Simply setting "LC_ALL=" > (explicitly unset the var) in the default remote process environment > list makes things work again. (Curiously though, it wasn't enough to > remove it from the list, I had to explicitly unset it. Maybe it's > hardcoded somewhere else in tramp.el code as well.) I realise the > variable is meant to be customized, so whatever "LC_ALL=C" fixes must be > weighed against the fact that it breaks non-ASCII chars in filenames > when it's there by default. Recently, there was a discussion about the same topic. See http://thread.gmane.org/gmane.emacs.devel/118789(Continue reading)
> Starting with Emacs 23.1.91/23.2 you could use eshell, which configures
> tramp-default-proxies-alist silently in the background.
I don't particularly like the look of eschell from what I've seen so
far, but I guess I have to get used to it
i am now using opensuse 11.2 as my desktop OS and the emacs is GNU Emacs
23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.18.1). Also i had to put
bash command in the .cshrc on pinky.
Thanks,
Mehul
On 11/19/2009 12:05 PM, Mehul Choube wrote:
>>>> Have you set ´tramp-shell-prompt-pattern' this time? Tramp does not accept your "pinky [1]: "
prompt, again.
>>>>
>>> My .emacs:
>>>
>>> (require 'tramp)
>>>
>>> (custom-set-variables '(tramp-verbose 10))
>>>
>>> (setq tramp-debug-buffer t)
>>>
>>> ;; (setq shell-prompt-pattern "[A-Za-z]* \[1\]: ")
>>>
>>> ;; (setq tramp-shell-prompt-pattern "\\(?:^\\| \\)[^:#$%>\n]*[:#$%>]
*\\(^[\\[[0-9;]*[a-zA-Z] *\\)*")
>>> ;; "\\(?:^\\| \\)[^#$%>\n]*[#$%>] *\\(^[\\[[0-9;]*[a-zA-Z] *\\)*"
>>>
>>> (setq tramp-shell-prompt-pattern
>>> (base64-decode-string
>>>
>>> "XCg/Ol5cfA1cKVteOiMkJT4KXSpbOiMkJT5dICpcKBtcW1swLTk7XSpbYS16QS1aXSAqX
>>> Ckq"))
>>>
>> Then I don't know what to do, without debugging. Sorry.
>>
> Thanks man I really appreciate your effort.
>
>
>
> Thanks,
> Mehul
>
>
>
> _______________________________________________
> Tramp-devel mailing list
> Tramp-devel <at> gnu.org
>
RSS Feed