1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibUnicode: Canonicalize locale private use extensions

This commit is contained in:
Timothy Flynn 2021-08-28 13:26:57 -04:00 committed by Linus Groh
parent 6f0cb52dc4
commit f897c2edb3
2 changed files with 12 additions and 1 deletions

View file

@ -580,7 +580,11 @@ Optional<String> canonicalize_unicode_locale_id(LocaleID& locale_id)
});
}
// FIXME: Handle pu_extensions.
if (!locale_id.private_use_extensions.is_empty()) {
builder.append("-x"sv);
for (auto const& extension : locale_id.private_use_extensions)
append_sep_and_string(extension);
}
return builder.build();
}