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
utf-7 codec in Encode uses m/\G/g without resetting pos() #9392
Comments
From alex@kapranoff.ruCreated by alex@kapranoff.ruThis is a bug report for perl from alex@kapranoff.ru, ----------------------------------------------------------------- Trivial patch: Inline Patch--- lib/Encode/Unicode/UTF7.pm.orig Thu Sep 2 19:53:51 2004
+++ lib/Encode/Unicode/UTF7.pm Thu Feb 28 17:03:56 2008
@@ -51,10 +51,11 @@
return $bytes;
}
-sub decode{
+sub decode($$;$){
my ($obj, $bytes, $chk) = @_;
my $len = length($bytes);
my $str = "";
+ pos($bytes) = 0;
while (pos($bytes) < $len) {
if ($bytes =~ /\G([^+]+)/ogc) {
$str .= $1; Perl Info
|
From @cpansproutForwarding to the CPAN queue.... On Wed Jun 25 06:14:05 2008, kappa wrote:
PATH=/home/kappa/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
-- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'rejected' |
From bug-Encode@rt.cpan.org<URL: https://rt.cpan.org/Ticket/Display.html?id=76711 > Thank you. applied in my repo. WIll be in 2.45. Dan the Encode Maintainer On Thu Apr 19 20:07:48 2012, perlbug-followup@perl.org wrote:
PATH=/home/kappa/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gam
|
Migrated from rt.perl.org#56342 (status was 'rejected')
Searchable as RT56342$
The text was updated successfully, but these errors were encountered: