[Python-de] Fehlerhafter Datei-Download mit Apache unter Windows...
jens
python_gmane at jensdiemer.de
Mon Mar 6 14:25:41 CET 2006
So, es geht nun endlich, danke gerold!
Man muß also explizit den stdout auf binär stellen, unter Windows:
======================================================
# force input/output to binary
if sys.platform == "win32":
import msvcrt
msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
======================================================
--
Mfg.
Jens Diemer
----
CMS in pure Python CGI: http://www.pylucid.org