openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herbert Dürr <>
Subject binary files in SVN
Date Mon, 29 Apr 2013 13:33:57 GMT
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.


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.


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,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message