Friday, February 2, 2018

warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

Donghuas-MacBook-Air:~ donghua$ ssh 192.168.31.5
Last login: Fri Feb  2 07:19:47 2018 from 192.168.31.177
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory


[donghua@localhost ~]$ vi /etc/environment 

# Add following 2 lines
LANG=en_US.utf-8
LC_ALL=en_US.utf-8


Donghuas-MacBook-Air:~ donghua$ ssh 192.168.31.5
Last login: Fri Feb  2 07:25:15 2018 from 192.168.31.177
[donghua@localhost ~]$