Re: [NiL-devel] Corrupt graphics
Status: Alpha
Brought to you by:
e-user
|
From: Robert W. H. <rw...@he...> - 2004-09-06 01:20:06
|
>> G-LiTe / wrote: > On zo, 2004-09-05 at 10:14 +1000, Phil Howlett wrote: >>Perhaps CVS has manged them (it isn't good with binary files). > > Yes, CVS stores the PNG files as text and inserts windows newlines when > you checkout on a windows box. I think I proposed before to NiL's > previous maintainer to separate the data from the source and not even > put the data in CVS (similar to Heroes). From: http://www.loria.fr/~molli/cvs/doc/cvs_9.html --------------------------------------------- There are two issues with using CVS to store binary files. The first is that CVS by default converts line endings between the canonical form in which they are stored in the repository (linefeed only), and the form appropriate to the operating system in use on the client (for example, carriage return followed by line feed for Windows NT). The second is that a binary file might happen to contain data which looks like a keyword (see section Keyword substitution), so keyword expansion must be turned off. The `-kb' option available with some CVS commands insures that neither line ending conversion nor keyword expansion will be done. --------------------------------------------- Further down on that page are the commands that you need to use to convert files already in the repository to binary files: --------------------------------------------- $ cvs admin -kb <filename> $ cvs update -A <filename> # For non-unix systems: # Copy in a good copy of the file from outside CVS $ cvs commit -m "make it binary" <filename> --------------------------------------------- Does anyone have admin privileges on the repository who could make this change? Some care should also be taken to use the -kb option when adding new binary files to the repository. When this is done properly, there should be no problem with storing them in CVS. Cheers, Robert. |