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

Re: MIME types extension matching is case-sensitive

From: petermity <6t12-n6js_at_dea.spamcon.org>
Date: Mon, 01 Jun 2009 23:30:19 -0700

Stefan Sperling <stsp_at_elego.de> wrote:

>On Fri, May 29, 2009 at 01:05:01AM +0200, Michael Diers wrote:
>> This glob expression syntax is a bit of a bummer, especially on Windows
>> where one typically wants case insensitivity.
>>
>> Here's a way to deal with it: generate the auto-props section from a
>> proto-auto-props file that uses a simplified syntax for case-insensitive
>> globbing.
>>
>> Example:
>>
>> *.{doc} svn:needs-lock=yes;svn:mime-type=application/vnd.ms-word
>>
>> translates to
>>
>> *.[Dd][Oo][Cc] svn:needs-lock=yes;svn:mime-type=application/vnd.ms-word
>>
>> A very simple Perl filter script is attached.
>
>Why shouldn't Subversion do case-insensitive matching itself, by default?
>Does anyone know whether the current behaviour is by design or whether
>it was just an oversight?
>
>I mean, there isn't any good reason why .jpg and .Jpg and .JPG should
>not match to the same mime-type, right?
>
>Stefan
>

I can't think of any good reason, and nobody else has responded. The very
reason I wanted to use the mime-types-file is to avoid lots of tweaking of
auto-props.

Is it possible then that this change could be in an upcoming 1.6.x
release?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2358659

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-02 08:31:40 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.