Skip to content

Commit

Permalink
re-add font rendering patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Apr 23, 2023
1 parent 65c27d4 commit bb82cea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/v8/src/objects/js-display-names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ class LanguageNames : public LocaleDisplayNamesCommon {
// 1.b If IsStructurallyValidLanguageTag(code) is false, throw a RangeError
// exception.
icu::Locale l =
icu::Locale(icu::Locale::forLanguageTag(code, status).getBaseName());
// 1.c Set code to CanonicalizeUnicodeLocaleId(code).
l.canonicalize(status);
icu::Locale::createCanonical(icu::Locale::forLanguageTag(code, status).getBaseName());
std::string checked = l.toLanguageTag<std::string>(status);

if (U_FAILURE(status)) {
Expand Down

0 comments on commit bb82cea

Please sign in to comment.