[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MIME type meta-data

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-03-05 00:05:10 CET

Paul Lussier wrote:

>The file(1) depends upon the /etc/magic and /usr/share/misc/magic
>files, and maps the data returned from the stat(2) call to these
>files to determine type. Granted, this is very UNIX centric, but if
>other platforms don't natively contain these files, couldn't svn or
>apr ship with their own versions for those platforms like file(1)
>does?
>
>

Nononono! Other systems have other ways of determining the mime type. On
Windows, for example, file extensions (and their mime types) are defined
in the Registry, and there's a standard way of finding the mime type. We
shouldn't go inventing our own.

*however*

If we make this a completely client-side feature, different clients will
behave differently when adding new files to the same repository. Ouch,
eek and yikes. So I think this sort of mime type configuration should be
a feature of the repository, with the clients just using the
configuration from the repo. We've talked before about server-side
configuration for clients, and haven't come up with a sane design, yet.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 5 00:08:00 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.