Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 36002 invoked from network); 10 Jan 2011 07:37:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jan 2011 07:37:42 -0000 Received: (qmail 64595 invoked by uid 500); 10 Jan 2011 07:37:42 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 64317 invoked by uid 500); 10 Jan 2011 07:37:39 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 64307 invoked by uid 99); 10 Jan 2011 07:37:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 07:37:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jan 2011 07:37:37 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0A7bFZv007949 for ; Mon, 10 Jan 2011 07:37:15 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id p0A7bFf3007948; Mon, 10 Jan 2011 02:37:15 -0500 (EST) Date: Mon, 10 Jan 2011 02:37:15 -0500 (EST) Message-Id: <201101100737.p0A7bFf3007948@thor.apache.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 50562] wrong PATH_INFO CGI environment with non-ASCII UTF8 characters X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: Win32 MSI Installer X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: yelu27@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50562 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 s= et by apache, with URI "/aaa=E4=BD=A0=E5=A5=BDbbb"=EF=BC=8C the exe surely get= a PATH_INFO with "/aaa\x3f\x3f\x3f\xa3\xa4\x3f". ascii character is 1 byte so the environ va= rs are not ucs-2.=20 ps: I used both getenv and windows api GetEnvironmentVariable and the result are the same. The .exe is compiled without unicode support with VS.=20=20= =20 (In reply to comment #2) > Wrong; Path info was the unicode value from your URI path. >=20 > Apache httpd didn't get this wrong, your CGI got it wrong and doesn't cor= rectly > 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. --=20 Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=3De= mail ------- You are receiving this mail because: ------- You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org