Y.A.S.D.

« gVim for win | Main | perl »

LF

これに関連する話(?)として,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.
 

Comments:

Post a Comment:
  • HTML Syntax: Allowed

[Masubi]
Copyright © 1998-2009 Tomoaki TSUMURA. Powered by Apache Roller 4.0.1.
tomoaki@tsumura.info