### The CHARSETID Section of the charmap File

The CHARMAP section and the CHARSETID section make up the main parts of the charmap file. The character set identifier section, or CHARSETID section, maps the symbolic names defined in the CHARMAP section to a character set identifier.

The two functions csid and wcsid query the locales and return the character set identifier for a given character. This information is not currently used by any other library function.

The CHARSETID section starts with a line containing the keyword CHARSETID, and ends with the line containing the keywords END CHARSETID. Both CHARSETID and END CHARSETID must begin in column 1. The lines between the first and last lines of the CHARSETID section define the character set identifier for the defined coded character set.

The character set identifier mappings are defined as follows:

    "%s %c", <symbolic-name>, <value>
    "%c %c", <value>, <value>
    "%s...%s %c", <symbolic-name>, <symbolic-name>, <value>
    "%c...%c %c", <value>, <value>, <value>
    "%s...%c %c", <symbolic-name>, <value>, <value>
    "%c...%s %c", <value>, <symbolic-name>, <value>

The individual characters are specified by the symbolic name or the value. The group of characters are specified by two symbolic names or by two numeric values (or combination) separated by an ellipsis (...). The interpretation of ranges of values is the same as specified in the CHARMAP section. The character set identifier is specified by a numeric value.

Internationalization
Localization and Locales

Customize a Locale

Locale Categories