Re: [Web-SIG] WSGI Amendments thoughts: the horror of charsets

2008-11-16 Thread Mark Hammond
> Python decodes the environ to its own copy (wrapped in os.environ) at > interpreter startup time; I don't think Python explicitly converts it - the CRT's ANSI version of environ is used, so the resulting strings should be encoded using the 'mbcs' encoding. What mangling do you see? > there's

Re: [Web-SIG] Revising environ['wsgi.input'].readline in the WSGI specification

2008-11-16 Thread Robert Brewer
+1 > -Original Message- > From: [EMAIL PROTECTED] [mailto:web-sig- > [EMAIL PROTECTED] On Behalf Of Ian Bicking > Sent: Sunday, November 16, 2008 10:06 AM > To: Graham Dumpleton > Cc: Web SIG > Subject: Re: [Web-SIG] Revising environ['wsgi.input'].readline in the > WSGI specification > >

Re: [Web-SIG] Revising environ['wsgi.input'].readline in the WSGI specification

2008-11-16 Thread Ian Bicking
Graham Dumpleton wrote: 2008/11/16 Ian Bicking <[EMAIL PROTECTED]>: We need to make a revision to the WSGI spec to say that environ['wsgi.input'].readline takes an optional size argument. It always does in practice (except in wsgiref.validate.validator, rendering that validator useless), and is

[Web-SIG] possible bug in cgi

2008-11-16 Thread Stephan Diehl
this is probably not the right place to ask, but I found some irritating behaviour with the cgi module and are unsure if it's a bug (seen on python2.5 and python2.6) The problem is this: >>> import cgi >>> cgi.FieldStorage(environ={'QUERY_STRING':u'a=b'}) FieldStorage(None, None, [MiniFieldStorage(