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

Re: [PATCH] MIME type guessing improved for *nix systems

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-03-29 18:29:25 CET

Dan Allen <dan@mojavelinux.com> writes:

> Matthew Hambley (matthew@therealm.demon.co.uk) wrote:
>
> > This patch improves subversions ability to guess the MIME type of a file as
> > it is added or imported. It does this on *nix systems by interogating the
> > mime.types file. Other platforms may have more appropriate mechanisms.
> > (for instance on Risc OS a call to the MIME map module) Quite frankly the
> > build mechanism scares the willies out of me so I have left well alone. If
> > someone can tell me why my unit tests don't get run I would be greatful.
> > Also I need a #define to let me know if the target platform is *nix or not.
>
> This is excellent because I noticed at the very least images should
> be recognized and are current set at application/octet-stream (a
> real pain for starting up a new project)

Yes, it's an excellent feature, but I'm unhappy with the
implementation. I know there was a long discussion thread about this,
but I don't remember the outcome or consensus... what was it?

I really dislike having OS-specific code in Subversion. That's the
reason we have APR. Can't we make APR do mime-type detection? The
Unix implementation would look for mime.types, and the Win32
implementation could consult the registry (or however it's done.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 29 18:30:18 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.