Locale::createUnicodeKeywords()->count() report incorrect number while the Locale has -t -x or other non -u extension

Description

The value of
Locale(“en-US-u-ca-gregory-x-foo“)createUnicodeKeywords()->count()

should return 1 (for “ca”) but it is now return 2
The next () only loop once and is implemented correctly but not count()

test code which break (in icu4c/source/test/intltest/loctest.cpp )

 

The output is now

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Priority

Fix versions

Created August 10, 2023 at 12:29 AM
Updated August 28, 2023 at 9:50 PM
Resolved August 22, 2023 at 4:35 AM