[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: Alan Barrett <apb_at_cequrux.com>
Date: Sat, 26 Apr 2008 10:24:45 +0200

On Fri, 25 Apr 2008, Andy Levy wrote:
> On Fri, Apr 25, 2008 at 5:12 PM, Mark E. Hamilton <mhamilt_at_sandia.gov> wrote:
> > $ svn propset --quiet svn:mime-type 'text/x-c++' --targets .svn_files
> > svn: MIME type 'text/x-c++' ends with non-alphanumeric character

If svn is complaining about that, I'd call it a bug. The syntax defined
in RFC 1521 clearly says

    token := 1*<any (ASCII) CHAR except SPACE, CTLs,
                  or tspecials>

There's nothing about "must start and end with an alphanumeric character".

> > 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:

Sure, you could probably find something that works for whatever you
want to do, and also works with svn. But you should be able to use
"text/x-c++" without svn complaining. I suggest reporting this as a
bug.

--apb (Alan Barrett)

---------------------------------------------------------------------
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 10:25:35 CEST

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.