From 1517700adf138e3f01e64bf3a280f78cef42aec2 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 14 Jul 2002 22:56:13 +0000 Subject: [PATCH] * fish.c (open_archive_int): Don't combine "export" and assignment into one command - it's not portable. Set LC_TIME to "C" as well. --- vfs/ChangeLog | 4 ++++ vfs/fish.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index a99754a06..4c3bd8616 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,5 +1,9 @@ 2002-07-14 Pavel Roskin + * fish.c (open_archive_int): Don't combine "export" and + assignment into one command - it's not portable. Set LC_TIME + to "C" as well. + * fish.c (open_archive_int): Set remote locale to C, otherwise timestamps cannot be parsed in some locales. diff --git a/vfs/fish.c b/vfs/fish.c index 3736d8ae0..3539ac5dc 100644 --- a/vfs/fish.c +++ b/vfs/fish.c @@ -268,7 +268,8 @@ open_archive_int (vfs *me, vfs_s_super *super) ERRNOR (E_PROTO, -1); /* Set up remote locale to C, otherwise dates cannot be recognized */ - if (command (me, super, WAIT_REPLY, "export LANG=C; export LC_ALL=C\n" + if (command (me, super, WAIT_REPLY, "LANG=C; LC_ALL=C; LC_TIME=C\n" + "export LANG; export LC_ALL; export LC_TIME\n" "echo '### 200'\n") != COMPLETE) ERRNOR (E_PROTO, -1);