Chapter 13. Localization

Table of Contents
Regular Expressions
Pattern Matching Notation

In order to install a message catalog, the installation procedure shall supply the message catalog in a format readable by the msgfmt utility, which shall be invoked to compile the message catalog into an appropriate binary format on the target system.


The original intent was to allow an application to contain the binary GNU MO format files. However, the format of these files is not officially stable, hence it is necessary to compile these catalogs on the target system. These binary catalogs may differ from architecture to architecture as well.

The resulting binary message catalog shall be located in the package's private area under /opt, and the application may use bindtextdomain() to specify this location.

Implementations shall support the POSIX and C locales as specified in the ISO POSIX (2003).

Regular Expressions

Utilities that process regular expressions shall support Basic Regular Expressions and Extended Regular Expressions as specified in ISO POSIX (2003), with the following exceptions:

Range expression (such as [a-z]) can be based on code point order instead of collating element order.

Equivalence class expression (such as [=a=]) and multi-character collating element expression (such as [.ch.]) are optional.

Handling of a multi-character collating element is optional.

This affects at least the following utilities: grep (grep) (including egrep), sed (sed), and awk (awk).