__unixify_ext

Alex Waugh alex at alexwaugh.com
Thu Nov 10 11:13:22 PST 2005


In message <db4355c74d.peter at chocky.org>
          Peter Naulls <peter at chocky.org> wrote:

> In message <36264dc74d.ajw498 at caramel.cp15.org>
>           Alex Waugh <alex at alexwaugh.com> wrote:
> 
> >
> > Presumably it searches the filename for the given extension, and if
> > found uses the dot or slash preceding it to make the decision?
> > 
> > What about doing a mimemap lookup on the final segment of the filename,
> > and if it matches assume it is the extension? That would be more
> > general purpose, but potentially more complex/unexpected behaviour.
> > 
> 
> Although the idea has some merit, I'm not sure it helps much in the case
> of bzip2, since .bz2 doesn't appear in the mimemap.  What kinds of
> programs were you thinking of?

I'm not sure, it was just a random idea. But yes, in the case of bzip2
it I guess it wouldn't really help.

Alex

-- 
Alex Waugh                                           alex at alexwaugh.com

PHP, Roots, Subversion, WebJames and more from http://www.alexwaugh.com/




More information about the gcc mailing list