Showing posts with label Locale (computer software). Show all posts
Showing posts with label Locale (computer software). Show all posts

Sunday, November 13, 2016

macOS Sierra: SSH (Secure Shell) Client Configuration File: Fixing Perl Locale Warning on Server

Command:

$ diff /etc/ssh/ssh_config /etc/ssh/ssh_config.org


Result:

21c21
< #        SendEnv LANG LC_*
---
>         SendEnv LANG LC_*

Monday, July 18, 2016

CentOS: Quick Fixing the Locale Problem When Terminal.app Failed to Set Locale Environment Variables on Startup

Command:

$ locale

Result:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: LC_ALL??????????????????: ??????????????????????
LANG=ja_JP.utf8
LC_CTYPE=UTF-8
LC_NUMERIC="ja_JP.utf8"
LC_TIME="ja_JP.utf8"
LC_COLLATE="ja_JP.utf8"
LC_MONETARY="ja_JP.utf8"
LC_MESSAGES="ja_JP.utf8"
LC_PAPER="ja_JP.utf8"
LC_NAME="ja_JP.utf8"
LC_ADDRESS="ja_JP.utf8"
LC_TELEPHONE="ja_JP.utf8"
LC_MEASUREMENT="ja_JP.utf8"
LC_IDENTIFICATION="ja_JP.utf8"
LC_ALL=


Command:

$ LC_CTYPE=ja_JP.utf8
$ locale

Result:

LANG=ja_JP.utf8
LC_CTYPE=ja_JP.utf8
LC_NUMERIC="ja_JP.utf8"
LC_TIME="ja_JP.utf8"
LC_COLLATE="ja_JP.utf8"
LC_MONETARY="ja_JP.utf8"
LC_MESSAGES="ja_JP.utf8"
LC_PAPER="ja_JP.utf8"
LC_NAME="ja_JP.utf8"
LC_ADDRESS="ja_JP.utf8"
LC_TELEPHONE="ja_JP.utf8"
LC_MEASUREMENT="ja_JP.utf8"
LC_IDENTIFICATION="ja_JP.utf8"
LC_ALL=


Command:

$ date

Result:

2016年  5月 18日 水曜日 03:47:01 JST

CentOS: Setting System Locale

Command:

$ locale -a | grep ja

Result:

ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc


Command:

$ localectl set-locale LANG=ja_JP.utf8
$ localectl

Result:

System Locale: LANG=ja_JP.utf8

Monday, May 16, 2016

Ubuntu: Setting System Locale

Command:

$ localectl set-locale LANG=ja_JP.UTF-8

$ localectl
System Locale: LANG=ja_JP.UTF-8

OS X: Terminal: Setting Locale for Remote Ubuntu Servers

Command:

user@remote:~$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

user@remote:~$ date
Mon May 16 12:19:05 JST 2016

user@remote:~$ export LANG=ja_JP.UTF-8
user@remote:~$ locale
LANG=ja_JP.UTF-8
LANGUAGE=
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

user@remote:~$ date
2016年  5月 16日 月曜日 12:19:52 JST

Ubuntu: Installing Japanese Language Pack

Command:

$ sudo apt-get install language-pack-ja language-pack-ja-base manpages

OS X: Terminal: Locale Error When Accessing Remote Linux Server

Error message:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory


Solution:

Terminal > Preferences... > Profiles > Basic > Advanced > International > Set locale environment variables on startup > UNCHECK