https://bugzilla.redhat.com/show_bug.cgi?id=1092015
--- Comment #2 from Petr Pisar ppisar@redhat.com --- This bug is triggered by upgrading Encode from 2.52 to 2.53, more precisely by commit:
commit ff65c71aa64c0efd285e6905ac68ba4e2cb25541 Author: Tatsuhiko Miyagawa miyagawa@bulknews.net Date: Sun Aug 25 19:02:16 2013 -0700
Do not short-circuit decode_utf8 with utf8 flags
diff --git a/Encode.pm b/Encode.pm index aea404a..5cee760 100644 --- a/Encode.pm +++ b/Encode.pm @@ -209,7 +209,6 @@ my $utf8enc;
sub decode_utf8($;$) { my ( $octets, $check ) = @_; - return $octets if is_utf8($octets); return undef unless defined $octets; $octets .= '' if ref $octets; $check ||= 0;
The former behavior was to return success on UTF-8-flagged string immediately. Now, it checks the argument is correct UTF-8 byte-string.