Skip to content

Commit

Permalink
CLDR-17014 Fix populateLanguagePaths bug
Browse files Browse the repository at this point in the history
-Do not modify SupplementalDataInfo.CLDRLanguageCodes, returned by sc.getGoodAvailableCodes!
  • Loading branch information
btangmu committed Dec 24, 2024
1 parent e3f2f32 commit 518b994
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

public class ExtraPaths {

Expand All @@ -17,8 +18,9 @@ static void appendLanguages(Collection<String> toAddTo) {
}

private static void populateLanguagePaths() {
Set<String> codes = new TreeSet<>();
StandardCodes sc = StandardCodes.make();
Set<String> codes = sc.getGoodAvailableCodes(StandardCodes.CodeType.language);
codes.addAll(sc.getGoodAvailableCodes(StandardCodes.CodeType.language));
codes.remove(LocaleNames.ROOT);
codes.addAll(
List.of(
Expand Down

0 comments on commit 518b994

Please sign in to comment.