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 |