← 返回命令列表

Linux command

localedef 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Example

localedef --list-archive

Example

localedef --help

Compile

localedef -i [locale] -f [charmap] [output_path]

说明

localedef compiles locale definition files into binary locale data that can be used by the C library. It reads character map and locale definition files to create locale archives.

参数

--list-archive
List locales in the archive
-i, --inputfile FILE
Locale definition input file
-f, --charmap FILE
Character map file
-c, --force
Create output even with warnings
--delete-from-archive
Delete locale from archive
--add-to-archive
Add compiled locale to archive
-?, --help
Display help information

FAQ

What is the localedef command used for?

localedef compiles locale definition files into binary locale data that can be used by the C library. It reads character map and locale definition files to create locale archives.

How do I run a basic localedef example?

Run `localedef --list-archive` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --list-archive do in localedef?

List locales in the archive