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

Re: Towards standardising mime-type support

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2005-04-01 16:26:26 CEST

> >>>> However, if I feed this to Subversion, it treats the file as
> >>>> binary. So, that's fine, I'll drop the charset stuff,
> >>>
> >>>
> >>>
> >>>
> >>> Ah, yes, We should know about charset attributes.
> >>>
> >>>> and things are mostly back to normal, but the added information
> >>>> still appears to be meaningless to Subversion.
> >>>
> >>>
> >>>
> >>>
> >>> Define "meaningless". You've told SVN that this is a text file, and
> >>> that's it. SVN doesn't interpret the mime type any further than that
> >>> (yet).
> >>
> >>
> >>
> >> I guess I'm saying that text/x-c and text/x-cc would imply that a
> >> file is source code, and hence platform independent, thus should
> >> always use the 'native' eol-style and should never be executable.
> >> While you should still specify the style and executability for
> >> something that is text/plain. However, this might not suit everyone...
> >
> >
> > Media types do not define the encoding, only the type of the contents.
> > Therefore we a) can't extrapolate eol-style from the mime type, and b)
> > would be totally wrong to do so because there are valid reasons _not_
> > to use native eol-style even in mixed-platform environments.
> a) I'm not convinced that we can't determine an eol-style because we
> only know the type of contents, and b) I can't think of any reason why I
> would want my source code in something other than the native format for
> whatever platform I'm editing it on.
> Perhaps I'm merely used to CVS taking care of all this for me.

You are aware of the auto-props feature which does take care of this, right?
Though that doesn't work with mime-types, but with filename patterns though.

Maybe that can help?



Handyrechnung zu hoch? Tipp: SMS und MMS mit GMX
Seien Sie so frei: Alle Infos unter http://www.gmx.net/de/go/freesms
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 1 16:28:59 2005

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

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