Subject: | &utf8::is_utf8 not given for all perls > 5.008 |
I just found out that there were perls post 5.8.0 that dod not yet have
the subroutine &utf8::is_utf8 defined. This leads to JSON not being
available for those perls which is a pity for the archeological studies
I'm doinf occasionally.
Luckily I found a pretty non intrusive solution to have JSON work on all
perls. I've uploaded it to CPAN as ANDK/patches/JSON-2.07-ANDK-01.patch.gz
And because it is just one line I repeat it here as a pseudo patch
--- JSON-2.07-xmvhRE.orig/lib/JSON/PP.pm
+++ JSON-2.07-xmvhRE/lib/JSON/PP.pm+0200
- if ($] == 5.008) {
+ unless (defined &utf8::is_utf8) {
Would be nice to see this patch some day applied so I can use unpatched
JSON version again.
Thanks,