The CHARSETID section

The character set identifier section of the charmap file maps the symbolic names defined in the CHARMAP section to a character set identifier.
Note: 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.

<comment_char>         %
<escape_char>          /
<code_set_name>        "IBM-930"
<mb_cur_max>           4
<mb_cur_min>           1
<shift_out>            /x0e
<shift_in>             /x0f

%
%       CHARMAP
%

CHARMAP
…
<j0110>                              /x42/x5a
<j0111>…<j0112>                /x43/xbe
<judc2001>…<judc2094>          /x72/x8d
…
END CHARMAP

%
%       CHARSETID
%

CHARSETID
…
<j0110>                                  1
<j0111>…<j0112>                        1
<judc2001>…<judc2094>                  3
…
END CHARSETID