From ff65c71aa64c0efd285e6905ac68ba4e2cb25541 Mon Sep 17 00:00:00 2001 From: Tatsuhiko Miyagawa Date: Sun, 25 Aug 2013 19:02:16 -0700 Subject: [PATCH] Do not short-circuit decode_utf8 with utf8 flags --- Encode.pm | 1 - 1 file changed, 1 deletion(-) 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;