httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50562] wrong PATH_INFO CGI environment with non-ASCII UTF8 characters
Date Mon, 10 Jan 2011 07:37:15 GMT

lu ye <> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |NEW

--- Comment #4 from lu ye <> 2011-01-10 02:37:13 EST ---
I have replaced that CGI with a C++ .exe to test the the environment vars set
by apache, with URI "/aaa你好bbb", the exe surely get a PATH_INFO with
"/aaa\x3f\x3f\x3f\xa3\xa4\x3f". ascii character is 1 byte so the environ vars
are not ucs-2. 
ps: I used both getenv and windows api GetEnvironmentVariable and the result
are the same. The .exe is compiled without unicode support with VS.   
(In reply to comment #2)
> Wrong; Path info was the unicode value from your URI path.
> Apache httpd didn't get this wrong, your CGI got it wrong and doesn't correctly
> handle non-ASCII input from the environment.  If your CGI environment's
> codepage is compatible with the characters transmitted, windows should be
> translating this itself into the appropriate MBCS.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message