1
1

* 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.
Этот коммит содержится в:
Pavel Roskin 2002-07-14 22:56:13 +00:00
родитель 72a5fc5cc1
Коммит 1517700adf
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,9 @@
2002-07-14 Pavel Roskin <proski@gnu.org>
* 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.

Просмотреть файл

@ -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);