Skip to content

Commit

Permalink
Merge pull request #11 from miyagawa/decode-utf8
Browse files Browse the repository at this point in the history
Do not short-circuit decode_utf8 with utf8 flags
  • Loading branch information
dankogai committed Aug 29, 2013
2 parents 6b2f547 + ff65c71 commit 8005a82
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 8005a82

Please sign in to comment.