Adding a new sort order locale

Updated: April 19, 2023

To add a new locale sort order:

  1. Download the required CLDR locale file from cldr.unicode.org.
  2. Convert the downloaded sort order table to the binary data format used by libqdb_cldr.so. See “Converting CLDR POSIX files” below.
  3. Configure your application to use the new sort order.

Converting CLDR POSIX files

Use the mkcldr utility to convert CLDR POSIX files to binary files suitable for the libqdb_cdlr.so. For example, the following example converts the file for German used in Switzerland:

$ cd cldr-1.4.1/posix
$ mkcldr -c UTF-8.cm de_CH.UTF-8.src /etc/cldr/de_CH
Note: The UTF-8.cm file is simply a database that maps textual character descriptions to their Unicode value; it is used in parsing the collation information.