Subject: | fix for #8872 introduces new "bug" |
Fix for http://rt.cpan.org/NoAuth/Bug.html?id=8872 doesn't allow to use strings with UTF-8 flag as decode_utf8 argument:
$ perl -MEncode -we 'decode_utf8("\x{100}")'
Cannot decode string with wide characters at /usr/lib/perl5/5.8.7/x86_64-linux/Encode.pm line 166.
This behaviour is not documented and also is not consistent with encode_utf8 that doesn't die when string has no UTF-8 flag.
--
Best regards. Ruslan.