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 Thu, 13 Jan 2011 13:25:25 GMT

lu ye <> changed:

           What    |Removed                     |Added
             Status|VERIFIED                    |REOPENED
         Resolution|REMIND                      |

--- Comment #7 from lu ye <> 2011-01-13 08:25:22 EST ---
After test, it is quite sure that apache has done wrong utf8 to unicode
conversion with non-ascii charcater. It simply extend the bytes of utf-8 with
\x00 to get the unicode encoding. Here is the test:
1. request a url你好
2. get "PATH_INFO" with windows api GetEnvironmentVariableW, it returns
"\x00\x2f \x00\xe4 \x00\xbd \x00\xa0 \x00\xe5 \x00\xa5 \x00\xbd" which should
be "\x00\x2f \x60\x4f \x7d\x59"
3. my cmd codepage is cp936(GBK), so any programming language which depends on
C lib to get this environment will get wrong result as long as a non-ascii uri
is requeted.
hope to check.
(In reply to comment #5)
> What does CHCP return at the command line?

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