Concerning Re: MIME Type for SVG images in SVN
Kevin Grover wrote on 19 Jun 2008, 22:18, at least in part:
> On Thu, Jun 19, 2008 at 12:05 PM, Jan Hendrik
> <list.jan.hendrik_at_gmail.com> wrote:
> > Have there been any considerations about excepting */*+xml types in
> > general as suggested in that thread back in 2004? Supposing of
> > course that XML never can be binary. Or is there an intention to
> > limit folks screwing up XML in plain text editors when they rather
> > should use the proper application?
> >
>
> I don't remember that particular conversation, but I remember others.
>
> Personally, instead of adding more exceptions to the svn:mime-type,
> I'd rather see a more generic approach:
>
> 1) All files are binary by default (current situation)
> 2) You mark a file as text with a property: this is the current
> situation. I would propose a change. I'd vote for svn:text-file
> (some similar) as a new property. It could be set to '*' (like
> svn:executable) or even to an eol setting (replacing svn:eol-style)
> and/or encoding. We could have related properties
> svn:text-file-eol-style and/or svn:text-file-encoding. If any are set
> the file is text, otherwise it's binary. svn:mime-type can be
> whatever you need it to be without affecting whether the file is text
> or not). This is sort-of the way it is. However, the property used
> it svn:mime-type and it's not obvious which files are text. Or at
> least, it's not obvious what the expectations to anything other than
> 'text/*' is binary. This would have to be made in
>
> or, as a consolidated property, svn:text (if set to anything) means
> the file is text, it could further have the optional settings eol:
> [native, cr, crlf, lf, any, ?]; encoding: [utf8, latin-1, ...]
>
> The second syntax could be extended to add new attribute values
> without affecting future version compatibility.
Indeed. Exceptions are not very good, in the end nobody but a few
insiders knows what all is excepted and results could be very
unexpected.
Of course I can hear the outcry: Don't do that, MIME is the official
regular legal way, anything else will confuse people, make them
screw up binary files, is irregular, illegal, and a big crime having the
smell of big company imposing propriatary non-standards on the
community of users.
Jan Hendrik
---------------------------------------
Freedom quote:
Die Freiheit ist die Seele von allem, ohne sie ist alles tot.
Ich will, daß man sich dem Gesetz unterwirft, aber nicht als Sklave.
-- Katharina die Große (1729-1796)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-20 09:14:55 CEST