所有的鸟儿他们都知道, 他们的巢应该筑在什么地方, 鸟儿知道自己该在什么地方筑巢, 那就意味着他们了解他们自己的使命。 我们身为万物之灵的人类, 怎么会不知道,连鸟儿都知道的道理呢?
How to fix warning: setlocale: LC_CTYPE: cannot change local
How to fix warning: setlocale: LC_CTYPE: cannot change local

How to fix warning: setlocale: LC_CTYPE: cannot change local

 After some googling found this blogpost from André Bergonse :

http://bergspot.com/blog/2012/02/how-to-fix-warning-setlocale-lc_ctype-cannot-change-locale-utf-8/

 
I made the mistake to put the export in the servers .bash_profile, but off course you need to put in your own OS X account .bash_profile or create this file.

$ vim .bash_profile
# OSX Lion ssh logon:
# -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
export LC_CTYPE="en_US.UTF-8"

Afterwards you need to restart your terminal program, I use iTerm2, to have the settings take affect.

 
 

 

From http://ibohm.blogspot.jp/2012/03/how-to-fix-warning-setlocale-lcctype.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注