stoneCC / serf

Automatically exported from code.google.com/p/serf
Apache License 2.0
0 stars 0 forks source link

File test_buckets.c is Windows formatted #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The file test/test_buckets.c is Windows/DOS formatted, i.e. it has CRLF 
instead of just LF chars.

Only the above file has the problem, all other files are ok.

The applies to serf v0.2.0. I've downloaded file serf-0.2.0.tar.bz2 and 
unpacked.

The consequence of the bug is that the compiler makes strange noises when 
compiling the above file.

To fix the problem on a Unix/Linux platform before the maintainers of the 
serf package fixes the problem do the following (Solaris code, your 
mileage may vary on other platforms) : 

#
#  The serf distribution (by mistake?) includes source files
#  that are DOS formatted. We search for all files with extension
#  *.h or *.c and replace if the CR character is found in any of
#  these.

for i in `find . \( -name '*.h' -o -name '*.c' \)` ; do
  if ( egrep -s "^M" $i; ) then 
    echo "Found DOS Carriage Return in file $i. Replacing ..."
    dos2unix -ascii -850 $i $i
  fi
done

Original issue reported on code.google.com by znog...@gmail.com on 12 Oct 2008 at 6:54

GoogleCodeExporter commented 9 years ago
We normally set svn:eol-style to native on all files in the serf source code 
repo, so
that they have the correct line endings for the platform on which the files are
exported. Some files in test/ lacked this property, r1201 fixed this. 

This means it will be fixed in next release.

Thanks for the report!

Original comment by lieven.govaerts@gmail.com on 12 Oct 2008 at 12:08