CR/LF Conversion with FastCGI on Windows/Apache
Jan Stürtz <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, while sending binary data to stdout via FastCGI on Windows with Apache CR will be converted to CRLF. Before using FastCGI I used _setmode to change this behaviour of stdout in my cgi. <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wcecrt4/html/erlrfussetmode.asp> While using FastCGI, it didn't work to change to binary mode with _setmode from within my application. I found the patch from Frank Warmerdam: <http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FastCGIOnWin32> which works fine to me. Is it the right way to fix this problem in the library? Are there any other possibilties? I tried to call _setmode after FCGI_Accept, didn't work. Could this patch get into the next Release? (Is there any plan for?) kind regards Jan ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/