Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING (rarely) - [#56] FIX strange JVM handling for locales #{:he …
…:yi :id} (@juhani-hietikko) The JVM's Locale constructor has some unexpected odd behaviour for these locales: > Locale's constructor has always converted three language codes to their > earlier, obsoleted forms: he maps to iw, yi maps to ji, and id maps to in. > This continues to be the case, in order to not break backwards > compatibility. - From http://docs.oracle.com/javase/8/docs/api/java/util/Locale.html Before this fix: (kw-locale :he) => :iw, (kw-locale :iw) => :iw (kw-locale :yi) => :ji (kw-locale :ji) => :ji (kw-locale :id) => :in (kw-locale :in) => :in After this fix: (kw-locale :he) => :he (kw-locale :iw) => :he (kw-locale :yi) => :yi (kw-locale :ji) => :yi (kw-locale :id) => :id (kw-locale :in) => :id This will clearly be BREAKING for anyone with dictionaries using any of the obsolete #{:iw :ji :in} locale keys. MIGRATION INSTRUCTIONS ---------------------- Update any locale keys in your dictionaries by substituting {:iw :he, :ji :yi, :in :id}
- Loading branch information