Skip Menu |

This queue is for tickets about the JSON-XS CPAN distribution.

Report information
The Basics
Id: 36345
Status: rejected
Priority: 0/
Queue: JSON-XS

People
Owner: Nobody in particular
Requestors: agentzh [...] yahoo.cn
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.2
Fixed in: (no value)



Subject: Inconsistent error messages on different platforms
JSON::XS issues inconsistent error messages when decoding invalid JSON inputs. Here attached a minimized test script manifesting this problem. For my ubuntu 8.04 + perl 5.8.8 + JSON::XS 2.2, the test script gives: $ perl test.t 1..1 not ok 1 # Failed test at test.t line 19. # ''"' expected, at character offset 25 ["}\n"] at test.t line 17. # ' # doesn't match '(?-xism:offset 25 \["}n"\])' # Looks like you failed 1 test of 1. while on a Debian sid + perl 5.10.0 + JSON::XS 2.2 it passes. From the CPAN testers' reports for my OpenResty module http://cpantesters.perl.org/show/OpenResty.html It seems that it's related to perl 5.10.0. Hope this helps.
Subject: bug.t
1. please use the contact address from the manpage and not rt.cpan.org, saves us a lot of trouble. do not reply or reopen this ticket. 2. JSON::XS has no test as described by you, and works correctly. 3. if openresty fails, then you need to report a bug against openresty - JSON::XS is not responsible for broken tests in other distributions. 4. if you suspect this is a bug in 5.10 (I suspect not) then you need to report this bug via perlbug.