> 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
+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
>
>
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
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(