Actually, many of the lines end with two carriage returns then a single line feed, 0x0d 0x0d 0x0a. There seem to be two reasons for this:
- The CVS checkin to
WordPress-Ver-1_2-Branch with the comment â€œCopied over Matts 1.2.1 changesâ€? added extra carriage returns before each line feed. I'm guessing the files were checked out under Windows and checked in under Unix, and/or that a seriously broken CVS client was used for one or the other.
- The ZIP and TAR files for WordPress 1.2.1 were created under Windows, unlike WordPress 1.2 which was created under Unix. You can check this by downloading the previous ZIP file from SourceForge and using â€˜zipinfoâ€™.
I ran a simple Perl command from the
wordpress directory to fix the lines endings:
perl -p -i -e 's/\x0d+$//' *.css */*.css *.html *.txt *.php */*.php */*/*.php
(I also had to resurrect
xmlrpc.php from WordPress 1.2.)