You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Greg Thomas <gr...@gmail.com> on 2005/06/04 13:57:10 UTC

[PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

>If the FAQ doesn't already have an entry for "binary files",
>explaining all this, it probably should.  Now comes the part where I
>try to seduce you into helping out: would you like to see what
>http://subversion.tigris.org/faq.html says on this subject, and
>produce a patch if needed?

How is the attached, which is based on my understanding from what's
been said on the mailing lists? My only concern is that it is in the
"How-to:" section, despite not being a 'how-to' type question - but it
seemed the most appropriate place.

[[[
* www/faq.html: Add FAQ "How does Subversion handle binary files?".
Also added a <meta http-equiv> tag so http://validator.w3.org/ can
properly validate an uploaded file.
]]]

Greg

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Nicolas Goutte <ni...@snafu.de>.
On Tuesday 14 June 2005 18:11, kfogel@collab.net wrote:
> Greg Thomas <th...@omc.bt.co.uk> writes:
> > On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
> >
> > <ba...@gmail.com> wrote:
> > >I followed the thread perhaps less well than I should have.  Would it
> > >be possible to iclude the criteria Subversion used when the file is
> > >first seen to infer that it is binary?
> >
> > I'm happy to update it, if someone could let me know what the criteria
> > is for detecting binary files.
>
> Thanks, Greg.  I committed your new FAQ item in r15055, and I tweaked
> it to add the information suggested above by Charles Bailey.
>
> I did not commit the "<meta http-equiv=...>" portion of your change,
> partly because it should be a separate commit anyway, and partly
> because I wasn't sure what problem it was solving.  Could you explain
> it in a bit more detail?  Your log message just said:
>
>    Also added a <meta http-equiv> tag so http://validator.w3.org/ can
>    properly validate an uploaded file.
>
> Is that important?  Should all our www/ files have this?

If you mean to set something like:
<meat http-equiv="Content-Type" content="text/html; charset=UTF-8">
then yes it is rather important to have it. (Of course, define the correct 
charset and correctly (for example not "utf8"), otherwise it is useless!)

It is much better to declare what charset is used that to let the HTML user 
agent (for example browser) to guess what encoding is used. (Sure http: 
transmit such information too when correctly set, but if the user saves the 
file, then that information is lost.)

And anyway, HTML pages that do not validate with http://validator.w3.org are a 
bad thing.

Have a nice day!

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Nicolas Goutte <ni...@snafu.de>.
On Tuesday 14 June 2005 18:11, kfogel@collab.net wrote:
> Greg Thomas <th...@omc.bt.co.uk> writes:
> > On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
> >
> > <ba...@gmail.com> wrote:
> > >I followed the thread perhaps less well than I should have.  Would it
> > >be possible to iclude the criteria Subversion used when the file is
> > >first seen to infer that it is binary?
> >
> > I'm happy to update it, if someone could let me know what the criteria
> > is for detecting binary files.
>
> Thanks, Greg.  I committed your new FAQ item in r15055, and I tweaked
> it to add the information suggested above by Charles Bailey.
>
> I did not commit the "<meta http-equiv=...>" portion of your change,
> partly because it should be a separate commit anyway, and partly
> because I wasn't sure what problem it was solving.  Could you explain
> it in a bit more detail?  Your log message just said:
>
>    Also added a <meta http-equiv> tag so http://validator.w3.org/ can
>    properly validate an uploaded file.
>
> Is that important?  Should all our www/ files have this?

If you mean to set something like:
<meat http-equiv="Content-Type" content="text/html; charset=UTF-8">
then yes it is rather important to have it. (Of course, define the correct 
charset and correctly (for example not "utf8"), otherwise it is useless!)

It is much better to declare what charset is used that to let the HTML user 
agent (for example browser) to guess what encoding is used. (Sure http: 
transmit such information too when correctly set, but if the user saves the 
file, then that information is lost.)

And anyway, HTML pages that do not validate with http://validator.w3.org are a 
bad thing.

Have a nice day!

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by kf...@collab.net.
Greg Thomas <th...@omc.bt.co.uk> writes:
> If an HTML file is accessed by HTTP, then the HTTP headers will tell
> the client what the character encoding is. 
> 
> If the HTML file is accessed by other means (e.g. via local file
> access, ftp, etc.) then the client has to determine what the encoding
> some other way. The best way to do this is to add the http-equiv tag. 
> 
> >Is that important?  Should all our www/ files have this?
> 
> I wouldn't say it's vitally important as the files are normally served
> via http, but yes, all the HTML files should have it really.

Okay, committed in r15057, thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by kf...@collab.net.
Greg Thomas <th...@omc.bt.co.uk> writes:
> If an HTML file is accessed by HTTP, then the HTTP headers will tell
> the client what the character encoding is. 
> 
> If the HTML file is accessed by other means (e.g. via local file
> access, ftp, etc.) then the client has to determine what the encoding
> some other way. The best way to do this is to add the http-equiv tag. 
> 
> >Is that important?  Should all our www/ files have this?
> 
> I wouldn't say it's vitally important as the files are normally served
> via http, but yes, all the HTML files should have it really.

Okay, committed in r15057, thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On 14 Jun 2005 11:11:34 -0500, kfogel@collab.net wrote:

>I did not commit the "<meta http-equiv=...>" portion of your change,
>partly because it should be a separate commit anyway, and partly
>because I wasn't sure what problem it was solving.  Could you explain
>it in a bit more detail?  Your log message just said:
>
>   Also added a <meta http-equiv> tag so http://validator.w3.org/ can
>   properly validate an uploaded file.

If an HTML file is accessed by HTTP, then the HTTP headers will tell
the client what the character encoding is. 

If the HTML file is accessed by other means (e.g. via local file
access, ftp, etc.) then the client has to determine what the encoding
some other way. The best way to do this is to add the http-equiv tag. 

>Is that important?  Should all our www/ files have this?

I wouldn't say it's vitally important as the files are normally served
via http, but yes, all the HTML files should have it really.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On 14 Jun 2005 11:11:34 -0500, kfogel@collab.net wrote:

>I did not commit the "<meta http-equiv=...>" portion of your change,
>partly because it should be a separate commit anyway, and partly
>because I wasn't sure what problem it was solving.  Could you explain
>it in a bit more detail?  Your log message just said:
>
>   Also added a <meta http-equiv> tag so http://validator.w3.org/ can
>   properly validate an uploaded file.

If an HTML file is accessed by HTTP, then the HTTP headers will tell
the client what the character encoding is. 

If the HTML file is accessed by other means (e.g. via local file
access, ftp, etc.) then the client has to determine what the encoding
some other way. The best way to do this is to add the http-equiv tag. 

>Is that important?  Should all our www/ files have this?

I wouldn't say it's vitally important as the files are normally served
via http, but yes, all the HTML files should have it really.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by kf...@collab.net.
Greg Thomas <th...@omc.bt.co.uk> writes:
> On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
> <ba...@gmail.com> wrote:
> 
> >I followed the thread perhaps less well than I should have.  Would it
> >be possible to iclude the criteria Subversion used when the file is
> >first seen to infer that it is binary?
> 
> I'm happy to update it, if someone could let me know what the criteria
> is for detecting binary files.

Thanks, Greg.  I committed your new FAQ item in r15055, and I tweaked
it to add the information suggested above by Charles Bailey.

I did not commit the "<meta http-equiv=...>" portion of your change,
partly because it should be a separate commit anyway, and partly
because I wasn't sure what problem it was solving.  Could you explain
it in a bit more detail?  Your log message just said:

   Also added a <meta http-equiv> tag so http://validator.w3.org/ can
   properly validate an uploaded file.

Is that important?  Should all our www/ files have this?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by kf...@collab.net.
Greg Thomas <th...@omc.bt.co.uk> writes:
> On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
> <ba...@gmail.com> wrote:
> 
> >I followed the thread perhaps less well than I should have.  Would it
> >be possible to iclude the criteria Subversion used when the file is
> >first seen to infer that it is binary?
> 
> I'm happy to update it, if someone could let me know what the criteria
> is for detecting binary files.

Thanks, Greg.  I committed your new FAQ item in r15055, and I tweaked
it to add the information suggested above by Charles Bailey.

I did not commit the "<meta http-equiv=...>" portion of your change,
partly because it should be a separate commit anyway, and partly
because I wasn't sure what problem it was solving.  Could you explain
it in a bit more detail?  Your log message just said:

   Also added a <meta http-equiv> tag so http://validator.w3.org/ can
   properly validate an uploaded file.

Is that important?  Should all our www/ files have this?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
<ba...@gmail.com> wrote:

>I followed the thread perhaps less well than I should have.  Would it
>be possible to iclude the criteria Subversion used when the file is
>first seen to infer that it is binary?

I'm happy to update it, if someone could let me know what the criteria
is for detecting binary files.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Tue, 14 Jun 2005 09:53:45 -0400, Charles Bailey
<ba...@gmail.com> wrote:

>I followed the thread perhaps less well than I should have.  Would it
>be possible to iclude the criteria Subversion used when the file is
>first seen to infer that it is binary?

I'm happy to update it, if someone could let me know what the criteria
is for detecting binary files.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Charles Bailey <ba...@gmail.com>.
On 6/14/05, Greg Thomas <gr...@gmail.com> wrote:
> 
> How is the attached, which is based on my understanding from what's
> been said on the mailing lists? My only concern is that it is in the
> "How-to:" section, despite not being a 'how-to' type question - but it
> seemed the most appropriate place.
> 
> [[[
> * www/faq.html: Add FAQ "How does Subversion handle binary files?".
> Also added a <meta http-equiv> tag so http://validator.w3.org/ can
> properly validate an uploaded file.
> ]]]

I followed the thread perhaps less well than I should have.  Would it
be possible to iclude the criteria Subversion used when the file is
first seen to infer that it is binary?

-- 
Regards,
Charles Bailey
Lists: bailey _dot_ charles _at_ gmail _dot_ com
Other: bailey _at_ newman _dot_ upenn _dot_ edu

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Charles Bailey <ba...@gmail.com>.
On 6/14/05, Greg Thomas <gr...@gmail.com> wrote:
> 
> How is the attached, which is based on my understanding from what's
> been said on the mailing lists? My only concern is that it is in the
> "How-to:" section, despite not being a 'how-to' type question - but it
> seemed the most appropriate place.
> 
> [[[
> * www/faq.html: Add FAQ "How does Subversion handle binary files?".
> Also added a <meta http-equiv> tag so http://validator.w3.org/ can
> properly validate an uploaded file.
> ]]]

I followed the thread perhaps less well than I should have.  Would it
be possible to iclude the criteria Subversion used when the file is
first seen to infer that it is binary?

-- 
Regards,
Charles Bailey
Lists: bailey _dot_ charles _at_ gmail _dot_ com
Other: bailey _at_ newman _dot_ upenn _dot_ edu

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <gr...@gmail.com>.
[Re-sent including dev list as well; sent it to users last week with
no response]

>If the FAQ doesn't already have an entry for "binary files",
>explaining all this, it probably should.  Now comes the part where I
>try to seduce you into helping out: would you like to see what
>http://subversion.tigris.org/faq.html says on this subject, and
>produce a patch if needed?

How is the attached, which is based on my understanding from what's
been said on the mailing lists? My only concern is that it is in the
"How-to:" section, despite not being a 'how-to' type question - but it
seemed the most appropriate place.

[[[
* www/faq.html: Add FAQ "How does Subversion handle binary files?".
Also added a <meta http-equiv> tag so http://validator.w3.org/ can
properly validate an uploaded file.
]]]

Greg

Re: [PATCH] FAQ update on binary files (was Re: Determining which files are treated as binary)

Posted by Greg Thomas <gr...@gmail.com>.
[Re-sent including dev list as well; sent it to users last week with
no response]

>If the FAQ doesn't already have an entry for "binary files",
>explaining all this, it probably should.  Now comes the part where I
>try to seduce you into helping out: would you like to see what
>http://subversion.tigris.org/faq.html says on this subject, and
>produce a patch if needed?

How is the attached, which is based on my understanding from what's
been said on the mailing lists? My only concern is that it is in the
"How-to:" section, despite not being a 'how-to' type question - but it
seemed the most appropriate place.

[[[
* www/faq.html: Add FAQ "How does Subversion handle binary files?".
Also added a <meta http-equiv> tag so http://validator.w3.org/ can
properly validate an uploaded file.
]]]

Greg