rcs 5.8-1 A problem with rcs. - corrupt files.. Here is the sequence: Create a 'hello world' file using vi. Check in a file. ci -u sam Check out the file co -l sam
get error when doing rlog on the next ci of the file. example: rlog samrlog: RCS/sam,v:31: junk at end of file: 't'
rlog aborted Here is a hex dump of sam $ od -cx sam 0000000 h e l l o w o r l d . \r \n \r \n 6568 6c6c 206f 6f77 6c72 2e64 0a0d 0a0d 0000020 \r \n \r \n \r \n 0a0d 0a0d 0a0d 0000026 Here is a hex dump of the rcs file: $ od -cx rcs/sam,v 0000000 h e a d \t 1 . 1 ; \r \n a c c e s 6568 6461 3109 312e 0d3b 610a 6363 7365 0000020 s ; \r \n s y m b o l s ; \r \n l o 3b73 0a0d 7973 626d 6c6f 3b73 0a0d 6f6c 0000040 c k s \r \n \t j a y : 1 . 1 ; s 6b63 0d73 090a 616a 3a79 2e31 3b31 7320 0000060 t r i c t ; \r \n c o m m e n t \t 7274 6369 3b74 0a0d 6f63 6d6d 6e65 0974 0000100 @ # @ ; \r \n \r \n \r \n 1 . 1 \r \n 2340 4020 0d3b 0d0a 0d0a 310a 312e 0a0d 0000120 d a t e \t 2 0 1 1 . 1 2 . 1 1 . 6164 6574 3209 3130 2e31 3231 312e 2e31 0000140 0 3 . 4 6 . 3 3 ; \t a u t h o r 3330 342e 2e36 3333 093b 7561 6874 726f 0000160 j a y ; \t s t a t e E x p ; 6a20 7961 093b 7473 7461 2065 7845 3b70 0000200 \r \n b r a n c h e s ; \r \n n e x 0a0d 7262 6e61 6863 7365 0d3b 6e0a 7865 0000220 t \t ; \r \n \r \n \r \n d e s c \r \n @ 0974 0d3b 0d0a 0d0a 640a 7365 0d63 400a 0000240 h e l l o \r \n @ \r \n \r \n \r \n 1 . 6568 6c6c 0d6f 400a 0a0d 0a0d 0a0d 2e31 0000260 1 \r \n l o g \r \n @ I n i t i a l 0d31 6c0a 676f 0a0d 4940 696e 6974 6c61 0000300 r e v i s i o n \r \n @ \r \n t e 7220 7665 7369 6f69 0d6e 400a 0a0d 6574 0000320 x t \r \n @ h e l l o w o r l d 7478 0a0d 6840 6c65 6f6c 7720 726f 646c 0000340 . \r \n \r \n \r \n \r \n \r \n @ \r \n t \r 0d2e 0d0a 0d0a 0d0a 0d0a 400a 0a0d 0d74 0000360 \r \n @ h e l l o w o r l d . \r 0a0d 6840 6c65 6f6c 7720 726f 646c 0d2e 0000400 \r \n \r \r \n \r \r \n \r \r \n \r \r \n @ \r 0a0d 0d0d 0d0a 0a0d 0d0d 0d0a 0a0d 0d40 0000420 \r \n 0a0d 0000422 --------------- problem also exists if you add a line, then try to check in. $ vi sam $ ci -u sam ci: RCS/sam,v:31: junk at end of file: 't' ci aborted --------------- Suspected line-ender problem. Started over and used 'flip' to go with unix line-ender. Same problems. BUT it looks like the DOS lime ender was added after the flip by ci, or co. $ vi henry $ flip -u henry $ od -cx henry 0000000 W h a t s u p ? \n \n 6857 7461 2073 7075 0a3f 000a 0000013 $ ci -u henry RCS/henry,v <-- henry enter description, terminated with single '.' or end of file: NOTE: This is NOT the log message!
Did a flip before ci. .
initial revision: 1.1 done $ co -l henry RCS/henry,v --> henry revision 1.1 (locked) done $ od -cx henry 0000000 W h a t s u p ? \r \n \r \n 6857 7461 2073 7075 0d3f 0d0a 000a 0000015 ---------------------- Promlem is still there. $ rlog henry rlog: RCS/henry,v:28: junk at end of file: '@' rlog aborted ----------------------- I have saved off my home directory. Deleted Both the cygwin and the download directories. Reinstalled from a different mirror. reloaded my home. Still problem. I found that flip -u does better job than dos2unix. ------------- reverting back to 5.7-11 of rcs bypasses problem. T H A N K S, Jay PS The cygcheck.out file will show that I reverted back to an older rcs.
cygcheck.out
Description: Binary data
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple