Help us understand the problem. What is going on with this article?

LANGには何を設定できるんだよ゛ぅ゛ぅ゛ぅ゛!!(藤原竜也

More than 5 years have passed since last update.

A. locale -a で調べましょう

例です。

$ locale -a
af_ZA
af_ZA.ISO8859-1
af_ZA.ISO8859-15
af_ZA.UTF-8
(中略)
ja_JP
ja_JP.eucJP
ja_JP.SJIS
ja_JP.UTF-8
(中略)
zh_TW
zh_TW.Big5
zh_TW.UTF-8
C
POSIX
$

ちなみに、LANGを変更すると
LC_ とつく変数が一緒に書きかわります

$ locale
LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_ALL=
$
$ LANG="ja_JP.SJIS" locale
LANG="ja_JP.SJIS"
LC_COLLATE="ja_JP.SJIS"
LC_CTYPE="ja_JP.SJIS"
LC_MESSAGES="ja_JP.SJIS"
LC_MONETARY="ja_JP.SJIS"
LC_NUMERIC="ja_JP.SJIS"
LC_TIME="ja_JP.SJIS"
LC_ALL=
$

時間だけen_USがいいぜ!って時は
LC_TIMEを直します

$ LC_TIME="en_US" date 
Fri Apr  4 15:52:46 JST 2014
$ 
$ 
$ LC_TIME="en_US" locale
LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="en_US"
LC_ALL=
$ 
$ date
2014年 4月 4日 金曜日 15時55分06秒 JST
$ 
LC 説明
LC_NUMERIC 数の形式
LC_TIME 日時の形式
LC_COLLATE 文字列のソート順序
LC_MONETARY 通貨の形式
LC_MESSAGES メッセージの言語
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした