Bug: Problem on Windows see old binary attachments
Need to switch to binmode when getting output from
RCS co command, but can't do that (at least I don't know how) when using backticks to run the command.
Test case
Attachment a word doc, change it and attach again, you're likely to just see junk.
Environment
| TWiki version: |
Alpha (and probably all older one with attachments under rev control |
| TWiki plugins: |
- |
| Server OS: |
Windows |
| Web server: |
- |
| Perl version: |
- |
| Client OS: |
- |
| Web Browser: |
- |
--
JohnTalintyre - 27 Mar 2002
Follow up
Fix record
For Windows put output in a temporary file, read in binmode and delete temporary file.
Implemented in Store/RcsWrap.pm and Store/RcsFile.pm.
Note this has brought in usage of File::Spec - I don't know how standard this is.
--
JohnTalintyre - 27 Mar 2002
More binmode craziness

... File::Spec is standard in Perl 5.005_03 - there's a link to the list of built-in modules at
ReadmeFirst.
BTW, what happens to topics marked
TWikiAlphaRelease when it becomes
BeijingRelease? Does someone do a mass update?
It would be good if there was a
TWikiAlphaReleaseBeijing or something, so that older topics can easily be seen as 'alpha leading to Beijing' rather than 'some alpha, not clear which one'...
+1 -- RandyKramer - 28 Mar 2002
--
RichardDonkin - 28 Mar 2002