I've just committed what is the first part of a larger fix for:

https://bugzilla.redhat.com/show_bug.cgi?id=712013

As explained in the bug report, this massively reduces the amount of
incorrect locale data (and avoids the exception), but there are still
some errors.  Fixing this requires changing the locale data, which
I'll do in a series of separate patches.


2011-12-12  Andrew John Hughes  <ahug...@redhat.com>

        RH712013: pdftk crashes with java.lang.ArrayIndexOutOfBoundsException
        * java/text/DateFormatSymbols.java:
        (getStringArray(List<ResourceBundle>, String, int)):
        Calls getStringArray(list,string,int,null).
        (getStringArray(List<ResourceBundle>, String, int, String[])):
        Populate a String array with locale data.  The data
        used is the first non-null non-empty element found
        as we traverse the locale hierarchy. May be supplemented
        by fallback data.
        (DateFormatSymbols(Locale)): Get a list of all bundles up the
        locale hierarchy, rather than just using the one specific locale.
        Use the improved getStringArray method to populate the arrays,
        supplying existing data where "sideways" inheritance takes place.

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07

Attachment: signature.asc
Description: Digital signature

Reply via email to