diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-31 10:05:00 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-01 14:14:47 +0100 |
commit | 72f49e42b49536dca912202aa7e779ea10133c90 (patch) | |
tree | b641d5f0141535f0abd6cd0224f82dcf298bcdd0 /Userland/Libraries/LibUnicode | |
parent | 9ae7ac4c87d1cc069c558883bd5df8b35cd83b22 (diff) | |
download | serenity-72f49e42b49536dca912202aa7e779ea10133c90.zip |
LibUnicode: Perform complex Unicode locale alias substitution
Diffstat (limited to 'Userland/Libraries/LibUnicode')
-rw-r--r-- | Userland/Libraries/LibUnicode/Locale.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/Locale.cpp b/Userland/Libraries/LibUnicode/Locale.cpp index 6dd5a23655..291b6f0782 100644 --- a/Userland/Libraries/LibUnicode/Locale.cpp +++ b/Userland/Libraries/LibUnicode/Locale.cpp @@ -568,6 +568,10 @@ static void transform_unicode_locale_id_to_canonical_syntax(LocaleID& locale_id) for (auto& variant : language_id.variants) variant = variant.to_lowercase(); +#if ENABLE_UNICODE_DATA + Detail::resolve_complex_language_aliases(language_id); +#endif + if (auto alias = resolve_language_alias(*language_id.language); alias.has_value()) { auto language_alias = parse_unicode_language_id(*alias); VERIFY(language_alias.has_value()); |