What to do with patch files
Some corrections to the code are given as patch files. Download the patch file and remember where you placed it and its name. Then open a command prompt in the directory containing the files that are to be changed. This will be source directory for changes to the code's source. The instructions will say which directory to change.
Make sure that the gnu/Wall version of the patch command is available. Other programs may install their own very different patch commands and we don't want to use them. Enter the command patch -v and look at the output. You should see GNU and Larry Wall somewhere.
To apply the patch enter the command patch < /path/to/patch2. You can remove the file patch2 after you finished.
There are end of line issues. The patch file and many patch utilities will use Unix EOL, while source on a Windows partition will have Windows-style EOL (CR-LF).
Do not use the cygwin version of patch The patch command that is part of cygwin will do the edits with linux style end of line characters. The file will have a mix of windows and linux set of end of line characters. You can repair the damage with unix2dos.
A Windows EOL version of patch can be obtained from sourceforge. The patch file must have Windows style end of lines.
Return to HotFixes main page
Return to the StepByStep instructions
Return to main wiki page
Return to nublado.org