You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Herbert Dürr <hd...@apache.org> on 2013/04/29 15:33:57 UTC

binary files in SVN

Files in SVN can have "properties" [1] that determine a file's MIME 
type, whether it is a text file and whether special CRLF conversions are 
needed. In general the defaults are very good so you don't have to 
bother with this topic.

[1] http://svnbook.red-bean.com/en/1.7/svn.advanced.props.html

Looking at some recent commits I noticed that there seems to be a 
misunderstanding: You must not mark a file as "executable" if you just 
want to say that this file should be treated as a binary file.

If the file is properly named then the MIME type will already 
automatically be determined by the filename. E.g. for a filename like 
"*.png" the MIME type "image/png" is set and the file is treated as 
binary file. For a complete list of these automatic properties please 
see [2]. Only text files get the "svn:eol-style" property.

[2] http://www.apache.org/dev/svn-eol-style.txt

Gratuitously adding unneeded permission bits to files is usually 
considered a security problem. If you accidentally set the executable 
bit on a file in SVN you can remove it by running:
     svn propdel svn:executable filename
In the rare case that a binary file is not treated as binary then the 
only posssible reason is that its eol-style was somehow set. To fix the 
problem just remove this property by running:
     svn propdel svn:eol-style filename

Hope that helps,
Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org