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

Re: svn_mime_type_is_binary, libmagic and application/xml

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 20 Nov 2013 09:31:43 +0100

On Wed, Nov 20, 2013 at 09:19:16AM +0100, Johan Corveleyn wrote:
> I'm not sure, but isn't libmagic support in svn unix-only? I've never
> seen it being part of a Windows build. Maybe there's a Windows
> alternative, but I've never seen it in an svn build.

Oh, I believe this is simply because nobody has ever bothered trying.
http://subversion.tigris.org/issues/show_bug.cgi?id=3914
Wanna give it a go?

> And even with libmagic (or something similar), it would be really nice
> if one could configure in svn (client and/or server-dictated) the
> mime-types which should be considered text. That would nicely separate
> the detection of file type from the decision of which type is
> considered text.

I see the problem that a lot of application/* mime-types actually
describe text files. Sigh... I wish the world had stuck with text/*
names for such files. This is causing needless complexity.
I ackknowledge that it would be nice to have a solution, but I'm not
going to argue for one solution or another. As long as we don't end
up having to maintain a list of mime-types in Subversion, I'm happy.
Received on 2013-11-20 09:32:25 CET

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