* fish.c (open_archive_int): Set remote locale to C, otherwise

timestamps cannot be parsed in some locales.
This commit is contained in:
Pavel Roskin 2002-07-14 16:27:15 +00:00
parent bb989f677a
commit 5f771b594e
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-07-14 Pavel Roskin <proski@gnu.org>
* fish.c (open_archive_int): Set remote locale to C, otherwise
timestamps cannot be parsed in some locales.
2002-07-12 Pavel Roskin <proski@gnu.org>
* fish.c (file_store): Reduce input block size to 256 bytes,

View File

@ -267,6 +267,11 @@ open_archive_int (vfs *me, vfs_s_super *super)
if (command (me, super, WAIT_REPLY, "#VER 0.0.0\necho '### 000'\n") != COMPLETE)
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"
"echo '### 200'\n") != COMPLETE)
ERRNOR (E_PROTO, -1);
print_vfs_message( _("fish: Setting up current directory...") );
SUP.home = fish_getcwd (me, super);
print_vfs_message( _("fish: Connected, home %s."), SUP.home );