(retracted by #12951)
Jarkko Hietaniemi [Sun, 11 Nov 2001 21:41:44 +0000 (21:41 +0000)]
p4raw-id: //depot/perl@12947

ext/Encode/Encode.pm

index bae9389..ac04bba 100644 (file)
@@ -264,6 +264,7 @@ sub encode_utf8
 sub decode_utf8
 {
  my ($str) = @_;
+ return $str if is_utf8($str);
  return undef unless utf8::decode($str);
  return $str;
 }