From: Vince D. <vi...@sa...> - 2003-10-28 21:37:24
|
I'm not talking about file permissions. Unix uses LF as a linefeed. Windows uses CR-LF. MacOS uses CR. Therefore when cvs checks out a file on a non-unix platform, it performs on the fly line-ending conversion. This obviously mangles any binary files. Cvs as some '-kb' option to specify that a file is not ascii. That's what we need here. I know I could try to fix this from Windows, but it's much easier from Unix because you automatically have a non-corrupted version of the file! I don't. Perhaps some notes about this can be added to Plplot's developer documentation so we don't run into the same problem next time the whole source tree is re-arranged ;-) cheers, -- Vince <http://www.santafe.edu/~vince> On Tue, 28 Oct 2003, Rafael Laboissiere wrote: > * Vince Darley <vi...@sa...> [2003-03-11 01:02]: > > > A year or two ago I reported a problem with the .map and .fnt files (in > > 'lib' at that time). They are not marked a 'binary' in cvs, and > > consequently are corrupted when checked out on any non-unix platform. Now > > that they have been moved to 'data' someone has made the same mistake > > again. > > I do not quite understand your problem. Short after Joao moved the files > from lib to data, I did the necessary changes in the file permission. This > was done exactly on Tue Mar 11 10:52:30 2003 (see > http://cvs.sf.net/viewcvs.py/plplot/CVSROOT/loginfo). > > Indeed, this is what happens here: > > $ cd data > $ rm -f * 2>/dev/null > $ cvs update >/dev/null 2>&1 > $ ls -l globe.map > -rwxr-xr-x 1 rafael rafael 33602 2003-10-28 22:17 globe.map > > The files *_are_* executable, but I do not know what you mean by "marked > binary". > > > Can someone on unix fix this problem please? > > In order to "fix" problems like this in the CVS tree, one does not need to > be on Unix. Actually, it is done by changing the CVSROOT/loginfo file and > this can be done from any system. See the comments that I put at the end of > that file. > > CAVEAT: USE THIS "FEATURE" VERY CAREFULLY, OTHERWISE THE CVS TREE CAN BE > SCREWED UP. > > -- > Rafael > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |