DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19339>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19339

stdin on CGI opened in text mode

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Critical                    |Enhancement
             Status|NEW                         |RESOLVED
           Priority|High                        |Other
         Resolution|                            |FIXED



------- Additional Comments From [EMAIL PROTECTED]  2003-04-26 05:35 -------
I figured out how to change the stdin mode on windows to be binary...
Do the following:
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif

#ifdef _WIN32
  _setmode(_fileno(stdin), _O_BINARY);
#endif
That turns off the CRLF mapping.

What a bozo I am... I had to read the Microsoft C library source to figure it 
out... blech.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to