CC: | mrylander [...] gmail.com, Eric Bégin (Eric.Begin [...] inLibro.com) <Eric.Begin [...] inLibro.com> |
Subject: | sprintf crashing the MARC library due to % in $marc8 |
Date: | Wed, 5 Apr 2017 09:33:59 -0400 |
To: | bug-MARC-Record [...] rt.cpan.org |
From: | Philippe Blouin <philippe.blouin [...] inlibro.com> |
Hi!
When going through our records, one of them always crash
Missing argument in sprintf at /usr/share/perl5/MARC/Charset.pm line 308.
Modification of a read-only value attempted at
/usr/share/perl5/MARC/Charset.pm line 308.
Seemingly, the cause is the % in the middle of the $marc8 value. sprintf
then expects some extra variable, which causes the crash (one error
leading to the next).
Not sure how to avoid that. I needed to comment the lines 308-310 in
the library to get through.
Best regards,
--
Philippe Blouin,
Responsable du développement informatique
Tél. : (888) 604-2627
philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com>
inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com>