Apache/Win 95 Irregularity
Steve Holden
sholden at holdenweb.com
Mon Apr 16 12:41:57 EDT 2001
"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:y7FC6.7546$4N4.1648707 at newsc.telia.net...
> Steve Holden wrote:
> > Under Windows 95 using Apache/1.3.19 and ActivePython (original build) I
get
> > something which IE 5.5 reports as being a 2326-byte GIF file containing
a
> > 259 x 32-pixel image whose appearance bears no relation to the Apache
logo:
>
> http://www.python.org/doc/FAQ.html#7.12
> Q. cgi.py (or other CGI programming) doesn't work
> sometimes on NT or win95!
>
> summary: the output stream is opened in text mode under Windows. to get
> binary mode, run the interpreter with the -u option.
>
> > #!C:\Python20\python
>
> this might work:
>
> #!C:\Python20\python -u
>
Many thanks -- it does !
regards
stEvE
More information about the Python-list
mailing list