Bug 472571
Summary: | CGI::escape is broken | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Need Real Name <mal> |
Component: | perl | Assignee: | Stepan Kasal <kasal> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | kasal, mmaslano, rc040203, robin.norwood, tcallawa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 5.10.0-68.fc10 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-04-22 01:09:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2008-11-21 20:04:29 UTC
This was reported to upstream http://rt.cpan.org/Public/Bug/Display.html?id=34528 perl-5.8.8 with the latest CGI is working. The problem could be caused by change in packing UTF-8 strings. First the above example is poorly written; before using utf-8 in the source, you should declare it: use utf8; my $t="Crêpe Café"; That way $t would become a Unicode string, with LEN=10 (counted in characters, not in bytes). (CGI::escape does handle Unicode strings correctly.) That said, I would like to return to the above case. It does demonstrate a bug, indeed. The string is a byte string (or Latin-1 string), consisting of ten one-byte characters. And CGI::escape should do the %XX escaping byte-by-byte on these, for several reasons, backward compatibility with perl-5.8.x among them. This bug is fixed in perl-5.10.0-66. Moreover the patch has been submitted upstream (see the link in comment #1) and is planned for CGI.pm-3.43. perl-5.10.0-66.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update perl'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2992 perl-5.10.0-67.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update perl'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2992 perl-5.10.0-68.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update perl'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2992 perl-5.10.0-68.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. perl-5.10.0-68.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |