Description
the Locale construct method can handle it while the LocaleUtils.toLocale can not
the test code is
@Testpublic void testLocaleUtilsToLocaleWithFourSegments() {
String localeStr = "en_001_US_POSIX"; Locale expectedLocale = new Locale("en", "001", "US_POSIX"); Locale actualLocale = LocaleUtils.toLocale(localeStr); assertEquals(expectedLocale, actualLocale);}