Locale::createCanonical() does not recursively match languageAlias AFTER match languageAlias/territoryAlias

Description

Locale::createCanonical() does not recursively match languageAlias AFTER match territoryAlias
Here are some example:
FAIL: createCanonical(azj-AZ); got "az-AZ"; expected "az-Latn-AZ"
Notice the following entries in https://github.com/unicode-org/cldr/blob/master/common/supplemental/supplementalMetadata.xml


FAIL: createCanonical(azj-SU); got "az-AZ"; expected "az-Latn-AZ"


FAIL: createCanonical(srp-YU); got "sr-RS"; expected "sr-Cyrl-RS"


FAIL: createCanonical(kas-Arab-356); got "ks-Arab-IN"; expected "ks-IN"

Activity

Show:
Frank Yung-Fong Tang
August 19, 2020, 6:18 PM

Code to reproduce the problem

Frank Yung-Fong Tang
August 19, 2020, 6:18 PM

Please assign this to me. I will work on this.

Frank Yung-Fong Tang
September 9, 2020, 5:54 PM

fix in

Frank Yung-Fong Tang
September 23, 2020, 6:29 PM

fix landed

Fixed

Assignee

Frank Yung-Fong Tang

Reporter

Frank Yung-Fong Tang

Components

Labels

Reviewer

None

Priority

medium

Time Needed

Days

Fix versions

Configure