all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Raphaël <raphael.droz@gmail.com>
To: 23011@debbugs.gnu.org
Subject: bug#23011: tramp: ls parse failure and locale
Date: Mon, 14 Mar 2016 13:05:07 -0300	[thread overview]
Message-ID: <20160314160507.GC32744@debovo.drzraf.me> (raw)

Hi,

I found myself unable to edit a file using tramp on a given server.

After comparing with another server where it works I found the following:

> server where tramp works
> -rw-r--r-- 1 raf raf 675 nov.  13  2014 /home/raf/.profile
> server where tramp fails
> -rw-r--r-- 1 raf raf 675 Nov 13  2014 /home/raf/.profile

And then found that env (in a non-interactive ssh session) was
> LANG=fr_FR.UTF-8 # where it works
> LANG=en_US.UTF-8 # where it fails
(I didn't tried to understand how tramp could fail on the english string
parse the non-english output while failing at the apparently common one.

I could track down the difference to Debian's update-locale &
/etc/default/locale (it's another story).


My point is that  in order to make tramp more robust it should rather
set environment variables LANG/LC_* to neutral values for to maximize
chances of getting a predictable output (even if we still parse `ls` in 2016), 


thank you
(please keep me in CC:)



Reference:
http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/net/tramp-sh.el#n1281





             reply	other threads:[~2016-03-14 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-14 16:05 Raphaël [this message]
2016-03-14 17:40 ` bug#23011: tramp: ls parse failure and locale Michael Albinus
2016-03-14 21:55   ` Raphaël
2016-03-15  7:00     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160314160507.GC32744@debovo.drzraf.me \
    --to=raphael.droz@gmail.com \
    --cc=23011@debbugs.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.