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

Re: svn: MIME type 'text/x-c++' ends with non-alphanumeric character

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 25 Apr 2008 20:38:55 -0400

On Fri, Apr 25, 2008 at 5:12 PM, Mark E. Hamilton <mhamilt_at_sandia.gov> wrote:
> I was using 'svn propset' to set the svn:mime-type property some files in a
> newly converted repository, and I get this error.
> $ svn propset --quiet svn:mime-type 'text/x-c++' --targets .svn_files
> svn: MIME type 'text/x-c++' ends with non-alphanumeric character
> However, some of the files that I converted already had this property set
> by cvs2svn, and set to the value 'text/x-c++':
> $ svn -v proplist ./test2/bleh.C
> Properties on 'test2/bleh.C':
> svn:mime-type : text/x-c++
> svn:keywords : Id
> svn:eol-style : native
> So, my questions are
> 1. What is the correct mime-type for C++ files? Clearly 'text/plain' would
> suffice, but is there a more correct one?

http://filext.com/file-extension/CPP shows several options:

application/x-cplusplus (probably not what you want, as SVN may treat
that as binary, not text)
text/anytext (I've never heard of "anytext" before)
text/plain (you've already addressed this)
text/x-c src (not sure about spaces in mime-types)
text/x-C++; text/x-c++src

text/x-c++src or maybe text/x-cplusplus-src?

For reference, Java sources typically are text/x-java-source from what
I've seen.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-26 02:39:37 CEST

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