LoginSignup
1
2

More than 5 years have passed since last update.

インストール済みで利用可能なロケールを確認する。

Posted at

やり方

$ locale -a
C
en_US.utf8
POSIX

以上。

補足

localeの設定が微妙だとperl実行する時こうなったりするじゃないですか

$ perl --version
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "ja_JP.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
略

ここらへん調べると大体、ロケールをインストールして環境変数にロケール文字列を入れてexportすればおk。みたいなのは出てくるのに、現状使えるロケールが何か調べるやり方が分からなかったんですよ。で、さんざんぐぐって見つからなかったけどman localeしたら書いてあったっていうね。

そのインストールの仕方の方を知りたかったらぐぐればいっぱい出てくると思います。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2