* 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.
Этот коммит содержится в:
родитель
72a5fc5cc1
Коммит
1517700adf
@ -1,5 +1,9 @@
|
|||||||
2002-07-14 Pavel Roskin <proski@gnu.org>
|
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
|
* fish.c (open_archive_int): Set remote locale to C, otherwise
|
||||||
timestamps cannot be parsed in some locales.
|
timestamps cannot be parsed in some locales.
|
||||||
|
|
||||||
|
@ -268,7 +268,8 @@ open_archive_int (vfs *me, vfs_s_super *super)
|
|||||||
ERRNOR (E_PROTO, -1);
|
ERRNOR (E_PROTO, -1);
|
||||||
|
|
||||||
/* Set up remote locale to C, otherwise dates cannot be recognized */
|
/* 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)
|
"echo '### 200'\n") != COMPLETE)
|
||||||
ERRNOR (E_PROTO, -1);
|
ERRNOR (E_PROTO, -1);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user