Option: Size of locale name strings

Macro name

CYGNUM_LIBC_MAX_LOCALE_NAME_SIZE

Type

Count

Description

This option controls the maximum size of locale names and is used, among other things to instantiate a static string used as a return value from the setlocale() function. When requesting the current locale settings with LC_ALL, a string must be constructed to contain this data, rather than just returning a constant string. This string data is stored in the static string. This depends on the length of locale names, hence this option. If just the C locale is present, this option can be set as low as 2.