Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 17755
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: BARBIE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.03
Fixed in: (no value)



Subject: utf8 & Perl
There is a requirment to use utf8::encode within the code, via t\02-base.t. As a result I get: Undefined subroutine &utf8::encode called at C:\.cpanplus\5.6.1\build\JSON-1.04\blib\lib/JSON/Parser.pm line 102. # Looks like you planned 43 tests but only ran 30. # Looks like your test died just after 30. Failed 1/19 test scripts, 94.74% okay. 13/341 subtests failed, 96.19% okay. As you've skipped utf8 testing elsewhere, is it possible to omit it here too. Tested on Windows 2000 Pro + ActivePerl 5.6.1. The function utf8::encode doesn't exist in Perl 5.6.1, so you may want to add 'use 5.008' in your Makefile.PL to ensure that only 5.8.x perls can use this.
Thanks your report. I was dealing with utf8::decode, but forgot utf8::encode. I have just released JSON-1.05 which should work correctly.
Hi, I have submitted a fix for utf8 decoding in perl 5.6.1, please look into it: http://rt.cpan.org/Ticket/Display.html?id=19646