solaris-tips-for-linux-users
solaris-tips-for-linux-users
solaris-tips-for-linux-users
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
参 考 :Solarisのシステムロケール<br />
Solaris<br />
• Solaris 標 準 のロケール( 文 字 コード)はUTF-8<br />
• システムロケールは 以 下 のサービスのプロパティで 設 定<br />
「svc:/system/environment:init」<br />
• システムロケールの 変 更<br />
実 行 例<br />
1.system/locale/extraパッケージのインストール<br />
※ 標 準 ロケール 以 外 を 使 用 する 場 合 のみ<br />
主 なロケール( 文 字 コード)<br />
英 語<br />
日 本 語 (EUC)<br />
日 本 語 (Shit-JIS)<br />
日 本 語 (UTF-8)<br />
設 定 値<br />
C<br />
ja_JP.eucJP、ja<br />
ja_JP.PCK<br />
ja_JP.UTF-8<br />
# pkg install system/locale/extra<br />
2.svccfgコマンドでロケールを 変 更 (LANG=Cに 設 定 )<br />
# svccfg -s system/environment:init setprop environment/LANG = astring: C<br />
3.サービスのプロパティの 再 読 み 込 み<br />
# svcadm refresh system/environment:init<br />
4. 設 定 反 映 の 確 認<br />
# svcprop system/environment:init | grep environment/LANG<br />
environment/LANG astring C<br />
・ 設 定 可 能 なロケールは、locale -aコマンドで 確 認 できます。<br />
11<br />
Copyright 2014 FUJITSU LIMITED