[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: Mark E. Hamilton <mhamilt_at_sandia.gov>
Date: Wed, 30 Apr 2008 15:03:46 -0600

Alan,

Thanks. I was going to submit a bug report as you suggested, and after
taking the time to write it up I thought I'd take a look at the code to
see if I could correct it, and lo and behold, it looks like someone has
already done so:

sahp7635% svn log svn/subversion/libsvn_subr/validate.c
------------------------------------------------------------------------
r30795 | stsp | 2008-04-26 09:28:17 -0600 (Sat, 26 Apr 2008) | 4 lines

* subversion/libsvn_subr/validate.c
   (svn_mime_type_validate): Check for illegal characters is now in
    compliance with RFC 1521.

Thanks again.

Alan Barrett wrote:
> 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)

-- 
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666
---------------------------------------------------------------------
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-30 23:04:22 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.