Section: Linux User Manual (1)
localedef [options] outputpath
localedef --list-archive [options]
localedef --delete-from-archive [options] localename ...
localedef --add-to-archive [options] compiledpath
The localedef program reads the indicated charmap and input files, compiles them to a binary form quickly usable by the locale functions in the C library (setlocale?(3), localeconv?(3), etc.), and places the output in outputpath.
The outputpath argument is interpreted as follows:
In any case, localedef aborts if the directory in which it tries to write locale files has not already been created.
A few options direct localedef to do something other than compile locale definitions. Only one of these options should be used at a time.
Some of the following options are only sensible for certain operations; generally, it should be self-evident which ones.
One of the following exit values can be returned by localedef:
Compile the locale files for Finnish in the UTF-8 character set and add it to the default locale archive with the name fi_FI.UTF-8:
The next example does the same thing, but generates files into the fi_FI.UTF-8 directory which can then be used by programs when the environment variable LOCPATH is set to the current directory (note that the last argument must contain a slash):
This page is part of release 3.74 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man-pages/.
Tutoriais de Tecnologia Web