ingelabs / classpath

GNU Classpath, Essential Libraries for Java
Other
8 stars 3 forks source link

DateFormatSymbols: Fix parsing of strings with a trailing delimiter #33

Closed guillerodriguez closed 5 months ago

guillerodriguez commented 5 months ago

Some strings in the locale data seem to contain an extraneous trailing delimiter. This results in an incorrect value for the last parsed symbol (the additional delimiter is returned as part of the symbol).

Fix this by adjusting the 'limit' parameter that is passed to Pattern.split(), so that any additional trailing data is not included in the parsed symbols.

Fixes #5 (BZ#83968)