Re: vfs.c "Could not parse"
- From: Christian Gennerat <christian gennerat vz cit alcatel fr>
- To: "Andrew V. Samoilov" <kai cmail ru>, "mc-devel gnome org" <mc-devel gnome org>
- Subject: Re: vfs.c "Could not parse"
- Date: Fri, 28 Sep 2001 14:21:23 +0200
"Andrew V. Samoilov" a écrit :
> > The table in
> > static int
> > is_month (char *str, struct tm *tim)
> > {
> > static char *month = "JanFebMarAprMayJunJulAugSepOctNovDec";
> >
> > is obviously an English table, and is good for most servers.
>
> Some time ago we discussed this. Then extended ftpfs URL with
> locale specifiacation was proposed. But it does not cure if you
> have not required locale installed on your system.
>
> Another way is to add possibility learn ftpfs about such locales.
> But it seems noone in the team has wish and time (in such order)
> to implement this feature.
Is there something about this in the FTP spec ?
I have solved the problem by commenting the line
#LC_TIME=fr.ISO8859-15
in the solaris machine (general environment).
I looked in my linux box:
When I do "ls -la" in a console, I have the "french" date
When ProFTP does "ls -la", it prints the "international" date.
So I think that Solaris FTP has to do:
setenv LC_ALL=C; ls -la $dir
It is easier to do than a code like this in vfs.c
/* Month name */
if(is_month(p, &tim)
#IFDEF ACCEPT_TIME_FR
||is_month_fr(p, &tim)
#ENDIF
#IFDEF ACCEPT_TIME_RU
||is_month_ru(p, &tim)
#ENDIF
){
and it can be very long...
and is_month_fr will accept "jan fév mars avr mai juin juil"
on some locales (Solaris), or "jan fév mar avr mai jun jul"
on others.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]