Problem: RCS files get corrupted on Windows
Solution: Set the
c:/twiki directory to be in
CygWin binary mode, by mounting it onto
/twiki in the Cygwin system, and configure
TWiki.cfg to use
/twiki, as described in
WindowsInstallCookbook.
Symptom: Diffs output is blank
When the
RCS files were not in binmode, any editing of the existing TWiki topics, e.g.
WebHome, would create a usable .txt file, and update the
RCS file, but the
rdiff script used for the Diffs and '>' links would not work.
In fact, every edit of an existing topic would end up corrupting the
RCS file by adding CR characters, resulting in the following message in the Apache error log (e.g.
c:/apache/logs/error_log) - these messages actually indicate a corrupt
RCS .txt,v file:
[Fri Feb 22 20:47:19 2002] [error] [client 127.0.0.1] co: c:/twiki/data/Know/WebPreferences.txt,v:103: edit script
refers to line past end of file
[Fri Feb 22 20:47:19 2002] [error] [client 127.0.0.1] co aborted
[Fri Feb 22 20:47:19 2002] [error] [client 127.0.0.1] rcsdiff: c:/twiki/data/Know/WebPreferences.txt,v: co failed
Symptom: Blank lines added on every Edit
This can be seen by re-editing a topic - on every edit new blank lines are seen, due to extra CRs being added. This is just another symptom of this problem (assuming you have ruled out specific browser issues that required a TWiki patch, but these did not affect IE5 or Mozilla).
--
RichardDonkin - 24 Feb 2002