From: richard Date: Thu, 22 Nov 2001 00:25:11 +0000 (+0000) Subject: quick fix for file uploads on windows in roundup.cgi X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b5e4d41ed20acbeb435014c8877a86890c82c9e;p=roundup.git quick fix for file uploads on windows in roundup.cgi git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@414 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi index 65c9436..e755c08 100755 --- a/cgi-bin/roundup.cgi +++ b/cgi-bin/roundup.cgi @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup.cgi,v 1.18 2001-11-06 22:10:11 jhermann Exp $ +# $Id: roundup.cgi,v 1.19 2001-11-22 00:25:10 richard Exp $ # python version check import sys @@ -154,7 +154,7 @@ def main(out, err): request.send_response(200) request.send_header('Content-Type', 'text/html') request.end_headers() - w = request.wfile.write + w = request.write w('Roundup instances index\n') w('

Roundup instances index

    \n') homes = ROUNDUP_INSTANCE_HOMES.keys() @@ -170,6 +170,11 @@ def main(out, err): # out, err = sys.stdout, sys.stderr try: + # force input/output to binary (important for file up/downloads) + if sys.platform == "win32": + import os, msvcrt + msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) + msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) checkconfig() sys.stdout = sys.stderr = LOG main(out, err) @@ -185,6 +190,9 @@ LOG.close() # # $Log: not supported by cvs2svn $ +# Revision 1.18 2001/11/06 22:10:11 jhermann +# Added env config; fixed request wrapper & index list; sort list by key +# # Revision 1.17 2001/11/06 21:51:19 richard # Fixed HTTP headers for top-level index in CGI script # diff --git a/doc/announcement.txt b/doc/announcement.txt index d2e92b9..f1ca352 100644 --- a/doc/announcement.txt +++ b/doc/announcement.txt @@ -1,7 +1,7 @@ Roundup 0.3.0 - an issue tracking system This release contains several new features which will require migration, so -we're releasing this preview for the bleeding-edge users. +please read MIGRATION.txt! Big stuff in this release: - lots of bug fixes, thanks to all users for their great feedback!