[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: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 29 May 2009 12:06:45 +0100

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
Received on 2009-05-29 13:08:25 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.