これに関連する話(?)として,CGI などで http header を送るときは '\n' よりも '\r\n'と書くか '\015\012'と書くのが常套手段かと。 以下 CGI.pm より。
# Define the CRLF sequence. I can't use a simple " " because the meaning
# of " " is different on different OS's (sometimes it generates CRLF, sometimes LF
# and sometimes CR). The most popular VMS web server
# doesn't accept CRLF -- instead it wants a LR. EBCDIC machines don't
# use ASCII, so \015\012 means something different. I find this all
# really annoying.