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

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

From: Mark E. Hamilton <mhamilt_at_sandia.gov>
Date: Fri, 25 Apr 2008 15:12:31 -0600

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?

2. cvs2svn clearly set it, but svn just as clearly doesn't allow it.
Which is correct? (This may be answered by the answer to #1.)

Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
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-25 23:13:06 CEST

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