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:
parent
6f0cb52dc4
commit
f897c2edb3
2 changed files with 12 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue