Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: SAMBA incompatibilities with VFAT=1 directory names



Hi Klaus and List,

with all these encoded characters we came slowly into the direction to have
nearly human unreadable directory names. It is ok, that all the surrounding
systems can read them, but for me it would be more easy to have a real
readable name in the List of recordings and that I can read them on screen
(OSD). And there are more problems with all these cryptic names. One
example: I use somtimes the ftp voyager from RHINO Soft. It is a very nice
tool on W2K but if a directoryname starts with %B or some other %<character>
it can not read its content. And there will be more applications in the
wilderness of M$ which will have problems with the directory names.

So what do you think to get back to real file and directory names, which
might be cryptic for the human but very clear for the systems (a
directoryname is a directoryname is a directoryname ...). And if you stay
with "old" filenameconvention (ASCII128, 8.3 uppercase(?) alphanumeric
without characters below #20(space) ) you will nearly have no problems with
any foreign system.

VDR could use than the summary file or whatever to create all that content
for the human reading. As somtimes discussed here it could be from a XML
file or any other structured datafile. But please keep it in a flat ASCII
file again for compatibility.

Maybe there are real RFC's for directory and filenames and if they are there
lets use them without (tricksing) doing everything what is possible.



Kind regards and a nice rest of this sunny sunday
Manfred


-------                   Manfred Schmidt-Voigt                  -------
-----                  Gunzweg 10, 22393 Hamburg                   -----
-----                                                              -----
-------          mailto:manfred.schmidt-voigt@mannitec.de         -------


> -----Original Message-----
> From: kls@cadsoft.de [mailto:kls@cadsoft.de]On Behalf Of Klaus
> Schmidinger
> Sent: Sunday, April 21, 2002 4:06 PM
> To: vdr@linuxtv.org
> Subject: [vdr] Re: SAMBA incompatibilities with VFAT=1 directory names
>
>
> Simon Dean wrote:
> >
> > > Ok, please choose which one:
> > >
> > > 1. simply stripping any '.' character(s) at the end of a directory
> > name,
> > > or
> > >
> > > 2. encoding '.' at the end of a directory name into '#2E'
> > >
> > > Klaus
> >
> > I think in the interests of correctness it should probably be option 2
> > ('#2E').
> >
> > Thanks,
> >
> > Simon
>
> Can you please try this patch and let me know if it works as expected?
> I'd like to include it in today's 1.0.1 release...
>
> --- recording.c 2002/04/01 10:51:23
> +++ recording.c 2002/04/21 13:55:45
> @@ -222,7 +222,6 @@
>                    case '+':
>                    case ',':
>                    case '-':
> -                  case '.':
>                    case ';':
>                    case '=':
>                    case '0' ... '9':
> @@ -237,7 +236,8 @@
>                    case ' ': *p = '_'; break;
>                    case '~': *p = '/'; break;
>                    // characters that have to be encoded:
> -                  default: {
> +                  default:
> +                    if (*p != '.' || !*(p + 1) || *(p + 1) ==
> '~') { // Windows can't handle '.' at the end of directory names
>                         int l = p - s;
>                         s = (char *)realloc(s, strlen(s) + 10);
>                         p = s + l;
>
>
> Klaus
> --
> _______________________________________________________________
>
> Klaus Schmidinger                       Phone: +49-8635-6989-10
> CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
> Hofmark 2                               Email:   kls@cadsoft.de
> D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
> _______________________________________________________________
>
>
>




Home | Main Index | Thread Index