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

Re: svn commit: r1441814 - in /subversion/trunk/subversion: svn/

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: Sun, 3 Feb 2013 07:42:42 -0500

On Sun, Feb 3, 2013 at 6:42 AM, Stefan Sperling <stsp_at_elego.de> wrote:

> On Sun, Feb 03, 2013 at 06:16:03AM -0500, Justin Erenkrantz wrote:
> > On Sun, Feb 3, 2013 at 6:06 AM, Justin Erenkrantz <justin_at_erenkrantz.com
> >wrote:
> >
> > > I thought we treated application/xml as text at one time? -- justin
> > >
> >
> > Yes, we did...and Ben -1'ed it back in 2004. See:
> >
> >
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=374218
> >
> > I guess...but...really? Is the only way for a user to override this is
> to
> > manually set their local auto-props? *sigh* -- justin
>
> Perhaps we should treat mime-types that contain 'charset=UTF-8'
> as text by default? libmagic is able to detect the charset AFAIK.
> Our code currently removes charset information from the mime-type
> returned by libmagic.
>
> I don't really like the idea of adding yet another special case
> to our definition of what a "text" mime-type is. But it might
> be worth doing this if it impacts a lot of people.
>

% file -i -k index.shtml
index.shtml: application/xml; charset=us-ascii

Not all of us use UTF-8, but yes the sentiment is valid. =) I do wonder
if printing out this new message saying SVN considers XML files as binary
is going to increase the amount of people realizing that they are tripping
over this. -- justin
Received on 2013-02-03 13:43:19 CET

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.