Skip to content

Commit

Permalink
Do not short-circuit decode_utf8 with utf8 flags
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Aug 26, 2013
1 parent f95214d commit ff65c71
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Encode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff65c71

Please sign in to comment.