EnglishFrenchSpanish

OnWorks favicon

localedef - Online in the Cloud

Run localedef in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command localedef that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


localedef - compile locale definition files

SYNOPSIS


localedef [options] outputpath
localedef --list-archive [options]
localedef --delete-from-archive [options] localename ...
localedef --add-to-archive [options] compiledpath
localedef --version
localedef --help
localedef --usage

DESCRIPTION


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:

* If outputpath contains a slash character ('/'), it is interpreted as the name of the
directory where the output definitions are to be stored. In this case, there is a
separate output file for each locale category (LC_TIME, LC_NUMERIC, and so on).

* If the --no-archive option is used, outputpath is the name of a subdirectory in
/usr/lib/locale where per-category compiled files are placed.

* Otherwise, outputpath is the name of a locale and the compiled locale data is added to
the archive file /usr/lib/locale/locale-archive. A locale archive is a memory-mapped
file which contains all the system-provided locales; it is used by all localized
programs when the environment variable LOCPATH is not set.

In any case, localedef aborts if the directory in which it tries to write locale files has
not already been created.

If no charmapfile is given, the value ANSI_X3.4-1968 (for ASCII) is used by default. If
no inputfile is given, or if it is given as a dash (-), localedef reads from standard
input.

OPTIONS


Operation-selection options
A few options direct localedef to do something other than compile locale definitions.
Only one of these options should be used at a time.

--delete-from-archive
Delete the named locales from the locale archive file.

--list-archive
List the locales contained in the locale archive file.

--add-to-archive
Add the compiledpath directories to the locale archive file. The directories
should have been created by previous runs of localedef, using --no-archive.

Other options
Some of the following options are only sensible for certain operations; generally, it
should be self-evident which ones.

-f charmapfile, --charmap=charmapfile
Specify the file that defines the character set that is used by the input file. If
charmapfile contains a slash character ('/'), it is interpreted as the name of the
character map. Otherwise, the file is sought in the current directory and the
default directory for character maps. If the environment variable I18NPATH is set,
$I18NPATH/charmaps/ and $I18NPATH/ are also searched after the current directory.
The default directory for character maps is printed by localedef --help.

-i inputfile, --inputfile=inputfile
Specify the locale definition file to compile. The file is sought in the current
directory and the default directory for locale definition files. If the
environment variable I18NPATH is set, $I18NPATH/locales/ and $I18NPATH are also
searched after the current directory. The default directory for locale definition
files is printed by localedef --help.

-u repertoirefile, --repertoire-map=repertoirefile
Read mappings from symbolic names to Unicode code points from repertoirefile. If
repertoirefile contains a slash character ('/'), it is interpreted as the pathname
of the repertoire map. Otherwise, the file is sought in the current directory and
the default directory for repertoire maps. If the environment variable I18NPATH is
set, $I18NPATH/repertoiremaps/ and $I18NPATH are also searched after the current
directory. The default directory for repertoire maps is printed by localedef
--help.

-A aliasfile, --alias-file=aliasfile
Use aliasfile to look up aliases for locale names. There is no default aliases
file.

--prefix=pathname
Set the prefix to be prepended to the full archive pathname. By default, the
prefix is empty. Setting the prefix to foo, the archive would be placed in
foo/usr/lib/locale/locale-archive.

-c, --force
Write the output files even if warnings were generated about the input file.

--old-style
Create old-style hash tables instead of 3-level access tables.

-v, --verbose
Generate extra warnings about errors that are normally ignored.

--quiet
Suppress all notifications and warnings, and report only fatal errors.

--posix
Conform strictly to POSIX. Implies --verbose. This option currently has no other
effect. POSIX conformance is assumed if the environment variable POSIXLY_CORRECT
is set.

--replace
Replace a locale in the locale archive file. Without this option, if the locale is
in the archive file already, an error occurs.

--no-archive
Do not use the locale archive file, instead create outputpath as a subdirectory in
the same directory as the locale archive file, and create separate output files for
locale categories in it.

-?, --help
Print a usage summary and exit. Also prints the default paths used by localedef.

--usage
Print a short usage summary and exit.

-V, --version
Print the version number, license, and disclaimer of warranty for localedef.

EXIT STATUS


One of the following exit values can be returned by localedef:

0 Command completed successfully.

1 Warnings or errors occurred, output files were written.

4 Errors encountered, no output created.

ENVIRONMENT


POSIXLY_CORRECT
The --posix flag is assumed if this environment variable is set.

I18NPATH
A colon-separated list of search directories for files.

Use localedef online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Rocket.Chat Desktop Client
    Rocket.Chat Desktop Client
    Rocket.Chat Desktop client is the
    official desktop app for Rocket.Chat,
    the simple but powerful open source web
    chat platform. It's tested on macOS,
    Windows...
    Download Rocket.Chat Desktop Client
  • 2
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 3
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 4
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 5
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 6
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • More »

Linux commands

Ad