cd /usr/lib/nls/loc cp en_GB.ISO8859-1.src gwm.src
vi gwm.src change <a> <a>;<non-accent>;<lower-case>;IGNORE <b> <b>;<non-accent>;<lower-case>;IGNORE <c> <c>;<non-accent>;<lower-case>;IGNORE <d> <d>;<non-accent>;<lower-case>;IGNORE to <a> <d>;<non-accent>;<lower-case>;IGNORE <b> <c>;<non-accent>;<lower-case>;IGNORE <c> <b>;<non-accent>;<lower-case>;IGNORE <d> <a>;<non-accent>;<lower-case>;IGNORE
localedef -f ISO08859-1 -i gwm.src gwm
LOCPATH=/u/foo:/usr/lib/nls/loc; export LOCPATH
The default for LOCPATH is /usr/lib/nls/loc.
Note: All setuid and setgid programs ignore the LOCPATH environment variable.
LC_COLLATE=gwm; export LC_COLLATE
Any command now uses the collation order specified in the gwm locale. In the example in step 2, the characters a-d are sorted in reverse order by commands such as ls and sort.