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

Re: "textual binary" MIME types (was Re: file locking and binary files)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-11-18 19:46:17 CET

On Mon, 2002-11-18 at 12:59, Eric Gillespie wrote:
> Hard-coding configuration data (yes, that's what it is) in your
> code is generally considered a bad idea.

I disagree with both of you. This isn't configuration data, this is
information. No one has an interest in configuring whether
image/x-xbitmap is composed of text or not. They may have an interest
in adding application/x-localtype, but that doesn't turn the contents of
the default list into configuration data.

The "magic" file used by the Unix file command is a good analog. It can
never be complete because people create new file formats, so you want it
to be easily updated, but it's not configuration. It generally lives in
/usr/share/magic on modern systems. You could imagine allowing an
/etc/localmagic where people could add magic for local file formats, but
it doesn't look like file supports that (and I don't think anyone really
cares).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 18 19:49:48 2002

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.