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

Re: Javascript mime-type treated as binary

From: Blair Zajac <blair_at_orcaware.com>
Date: Sat, 13 Sep 2008 10:58:24 -0700

Glen Dayton wrote:
> Some of our files have the svn:mime-type set to 'application/x-javascript'.
>
> Even though we know the file is really text, svn merge treats the file
> as a binary.
>
> I think application/x-javascript is obviously text. There doesn't seem
> to be a way to inform subversion what mime-types are actually text
> versus binary.
>
> Some our developers know better than to set svn:mime-type, but we're a
> large project so not everybody has received the word. This problem
> messes up our merge strategy.
>
> I really think this is really a subversion bug.

We could add an exception to svn to treat 'application/javascript' as a text
type, but for now, I recommend using the deprecated 'text/javascript' MIME type
instead. According to

http://en.wikipedia.org/wiki/Internet_media_type

it looks like we shouldn't treat 'application/x-javascript' specially since it's
not listed.

Let's see if anybody else has any feedback on adding it.

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-13 19:58:49 CEST

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.