New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CGI::Util::escape broken for iso-8859-1 data #9164
Comments
From srezic@cpan.orgThis is a bug report for perl from srezic@cpan.org, There's a change in behaviour when passing characters with codepoints $ perl5.8.8 -MCGI -e 'warn CGI->new({a=>"\xe4\xf6\xfc"})->query_string' $ perl5.10.0 -MCGI -e 'warn CGI->new({a=>"\xe4\xf6\xfc"})->query_string' I don't see a possibility to get iso-8859-1-encoded data with current Regards, Flags: Site configuration information for perl 5.10.0: Configured by eserte at Tue Dec 18 20:30:25 CET 2007. Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Locally applied patches: @INC for perl 5.10.0: Environment for perl 5.10.0: |
From @avarThe pack format changed from C* to U0C*, this can be reduced to the following: $ perl -mCGI::Util -le 'my @str; push @str, pack("C*", unpack($_, "\xe4\xf6\xfc")) for qw(C* U0C*); for (@str) { s/([^a-zA-Z0-9_.~-])/uc sprintf("%%%02x",ord($1))/eg; print }' |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Sun, Dec 23, 2007 at 12:49:24PM -0800, srezic@cpan.org wrote:
This appears to be fixed in blead and 5.10.1-tobe (i.e. I see the 588 -- |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#49055 (status was 'resolved')
Searchable as RT49055$
The text was updated successfully, but these errors were encountered: