首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > locale
【标  题】:locale
【关键字】:locale
【来  源】:http://www.cublog.cn/u/22178/showart.php?id=154739

locale

locale

locale [options] [name]

Print report on current locale settings. Locales determine the country-specific settings for a system, including character encodings, the formatting of dates, honorifics, diagnostic messages, currency, printer-paper sizes, and default measurements. Locale settings are essentially a dictionary of settings specified by keyword. The keywords are grouped together into related categories whose names begin with LC_. Each category has a related environment variable of the same name from which it will read its locale setting. Supply keyword or category names as name to examine their values. Multiple names may be given. You can also use the special keyword charmap to see the current character mapping. When executed with no arguments, locale prints the value of all locale-related environment variables.

Options

-a

Print all available locale settings installed on the system.

-c

Print the category related to each name argument.

-k

Print keywords along with their settings for each name argument.

-m

Print all available character maps.

Environment variables

LANG

The default value for unset internationalization variables. If not set, the system's default value is used.

LC_ADDRESS

Postal settings, country, and language names and abbreviation.

LC_COLLATE

String and character sorting and comparison settings.

LC_CTYPE

Character attributes, including case conversion mappings, and categories of characters (whitespace, digit, lower, upper, punctuation, etc.).

LC_IDENTIFICATION

Information related to the current locale definition, including its title, source, revision, and contact information for its author.

LC_MEASUREMENT

Measurement units, metric or other.

LC_MESSAGES

Settings for yes/no prompts and other informative and diagnostic messages.

LC_MONETARY

Currency formats and symbols.

LC_NAME

Formats for names and honorifics.

LC_NUMERIC

Nonmonetary number formats.

LC_PAPER

Default paper sizes for printing and pagination.

LC_TELEPHONE

Telephone number formats.

LC_TIME

Date and time formats.

LC_ALL

When set, overrides the values of all other internationalization variables.

NLSPATH

The path for finding message catalogs used in processing messages.

Examples

Print the category name and all keywords for date and time settings:

locale -ck LC_TIME

Print the strings used for days of the week and months of the year:

locale day mon

locate:【上一篇】
loadkeys:【下一篇】
【相关文章】
  • 如何修改suse的locale
  • locale命令的输出
  • locale,中文的显示和输入,字体和emacs
  • locale note
  • LINUX & Oracle: How to config locale setting corre
  • 转一篇讲locale 的文章
  • Unix&&Linux 修改locale
  • can't set the locale correctly
  • 如何改变一台主机的locale
  • Unix&&Linux 修改locale
  • 【随机文章】
  • 修改Tomcat的主配置文件,增加一个Postgre数据库JDBC连接池。
  • 联通彩e接口开发(1)
  • 中国IT工程师国外受追捧月薪超万元
  • 英文的服务器不支持中文及中文数据库的解决办法
  • PhotoShop实用小技巧挖掘
  • vs2003安装提示重新启动
  • 今天看到几个正则表达式
  • 开始 .Net的旅程(一)
  • DOS大全(二)
  • ORACLE 常用脚本(3)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.