uloc_getDisplayName returned output length can be too short due to zero-terminating

Description

Output:

Expected:
The result string should be "français (Belgique)", including the closing parenthesis. It looks like this issue is due to the final u_terminateUChars call in uloc_getDisplayName, which requires one additional character.

Test case:

Assignee

Frank Yung-Fong Tang

Reporter

André Bargull

Components

Labels

Reviewer

None

Priority

minor

Time Needed

Days

Fix versions

Configure