Improve memory management in the locale code

Description

Follow-up to ticket ICU-20445: The memory management in the locale code has been cleaned up considerably, but there are still further improvements that could be done in these areas:

  1. Fixed size buffers should never be used for anything that doesn't have a well-defined maximum length.

  2. Reliance on NUL terminated strings should be reduced to where it's necessary and/or meaningful.

  3. Unnecessary copying should be avoided.

Status

Assignee

Fredrik Roubert

Reporter

Fredrik Roubert

Labels

None

Reviewer

Markus Scherer

Time Needed

Days

Start date

None

Components

Fix versions

Priority

minor