Boost logo

Boost :

Subject: Re: [boost] Fwd: Line endings fixes
From: Dave Abrahams (dave_at_[hidden])
Date: 2013-08-10 23:03:52


on Sat Aug 10 2013, Vitaly Budovski <vbudovski+news-AT-gmail.com> wrote:

> On 10 August 2013 21:02, John Maddock <john_at_[hidden]> wrote:
>>>> This program writes html and end of line as std::endl;.
>>>>
>>>
>>> Regardless of the method, any text based formats should be checked
>>> into SVN with mime-type text/plain and native eol.
>
>>>
>>>> These SVG files are used to generate the PDF version of Boost.Math docs
>>>> (because using PNG produces
>>>> very poor display).
>>
>>
>> Except the svn-based browser doesn't then display them as images. Please
>> don't say "fix the server" as I don't think we have control over that. If
>> this issue is likely to go away when we convert to GIT shouldn't we just
>> wait?
>>
>> John.
>>
>
> Except that it will *not* go away. As Dave mentioned, git has no
> concept of mime-type in the repository unlike SVN. The bad files are
> commited to SVN and git will simply fetch whatever it is told.

Well, it's not unreasonable for the conversion process to look at the
properties of the file in SVN and use them to do some processing before
sending it to Git.

> It makes no sense to hack around the problem by making a custom script
> to fix broken files when it should just be done at the source, keeping
> commit history accurate. Whoever is hosting the boost.org website can
> fix the issue by setting the appropriate mime-type based on extension
> in the web server.

I'm sure that can be done. Please tell Dong-Inn what you think he
should do when he asks!

-- 
Dave Abrahams

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk